Hello everyone,

I want to move the value of PI(see code below) into my field MainfieldRisk, to 
do that I have to convert it to a string. I am using functions:
expPI.fd = FlpDoubleToFloat(PI);
FlpFToA(expPI.fd,str);
inorder to get there but, seems that the FlpDoubleToFloat isn't it in the 
"FloatMgr.h" library.

Is there an easier way to achieve this? 

Thanks,

Carlos


#include "FloatMgr.h"
...
MemHandle       textH;
char    *str;
double  PI;
FlpCompDouble expPI;
FlpCompDouble fcd, psd;

...
PI = exp(PI);
PI = (1.0 - pow(0.906,PI))* 100.0;
expPI.fd = FlpDoubleToFloat(PI);
FlpFToA(expPI.fd,str);
...
FldSetTextHandle(GetObjectPtr(MainFieldRisk),textH);
FldDrawField(GetObjectPtr(MainFieldRisk));

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

Reply via email to