hi, i have problem when using functions like sin, cos, tan :

------------------------------------------------------
include "MathLib.h"

double    value;
FlpCompDouble    temp;
Char     str[10];

value = cos(0.5);
temp.d=value;
FlpFToA(temp.fd, str);
WinDrawChars(str, StrLen(str), 80, 80);
------------------------------------------------------

The screen displays(draws) sth like "pppppppppp"(error) instead of the
desired answer.
i have tried sin( ), tan( ) and other values in the ( ) but the results are
the same.
if i do some basic calculation of double like + - * /  then the results
displayed are correct,
so where is the problem and how to correct it?
thx



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to