I'm trying out FixedMath.h, I'm having problems with FixedMul and FixedDiv... when I 
do add and subtract I get the right values but on multiply and divide I always get 0.  
What could cause this?

Here's the code.


FixedType x ,y;
                        
x = FixedFromInteger(12);
y = FixedFromInteger(2);
                                                
y = FixedMul(x,y);

y = FixedToInteger(y);  
char* u=0;
StrIToA(u, y);
WinDrawChars(u,StrLen(u), 100,90);
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to