Igor Mozolevsky writes:
>Thomas Ward writes:
>>Ah, now that WOULD surprise me. Tell me, O Wise One, what is the name of the
>>Palm OS function that does string-to-double conversion?
>
>Now that I'm up, FplAtoF(),  see SDK documentation, O apparently not so
>wise one.

FplAtoF converts from a string to a "FloatType".  However, that's in the "old"
Floating Point Manager, the header to which I don't think Palm even ships any
more.  Perhaps Igor means FlpAtoF, which converts from a string to a
"FlpDouble".

I think that an FlpDouble can be converted to a double using the FlpCompDouble
type.  That is:

     double myDouble;
     FlpDouble myFlpDouble;
     FlpCompDouble myConverter;

     myFlpDouble = FlpAtoF("1.234");
     myConverter.fd = myFlpDouble;
     myDouble = myConverter.d;

-- Keith Rollin
-- Palm OS Emulator engineer



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

Reply via email to