Okay - I'm trying to do simple math here. I have a floating point number in
string format. I first attempt to convert from ASCII to Float using
FplAtoF(). Multiply the result by 5.5. Then convert the result to Long.
However, I get a compile error saying that FplAToF() and FplFloatToLong()
has no prototype. Now I thought that FplAToF() and FplFloatToLong() are
provided by the Palm float library. I included the float manager (#include
<FloatMgr.h>), but no luck!
Any suggests as to a solution? (Code below.)
TIA...
Young Cho
[EMAIL PROTECTED]
Char DataValue[6];
Int32 iDataValue;
FlpFloat fDataValue;
fDataValue = FplAToF(DataValue);
fDataValue = fDataValue * 5.5;
iDataValue = FplFloatToLong(fDataValue);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/