FlpAToF should work fine.
Make sure you are using 8 byte doubles, and that the math library is set to
Palm OS. I use NewFloatMgr.h but not the lib.
Oliver
At 03:22 PM 2/22/00 +0000, you wrote:
>Hello,
>
>I'm writing an application using double. I'm reading datas from serial
>port (GPS NMEA input) and receive some infos, particulary float/double
>as string. I'm trying to convert this string ("111.0") to a double
>value. I've tried an example taht I found in news :
>
>FlpCompDouble palmDouble;
>double myDouble;
>
>palmDouble.fd = FlpAToF ("111.0");
>myDouble = palmDouble.d;
>
>I receive a value of 0.9xxx something. What's wrong ?
>
>Do anyone know another method to convert float/double -> string or
>string -> float/double ?
>
>I need double to use MathLib.
>
>Many thanks for any help.
>
>Didier Kuttel
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html