2001/04/08

In Mr Cho's defence, I would like to point out that the SDK
reference (pages 573 to 578) give all the floating point API's with
prefixes "Fpl" and not "Flp". Mr. Cho didn't transpose the
characters; the SDK did.

I thank him for bring up this problem, as it is a trap I would
surely have fallen into a few days hence.

Sincerely
H.D. Valliant

>Subject: Re: Problem with Floating point conversion functions
>Date: Thu, 5 Apr 2001 18:09:30 -0500
>X-Message-Number: 56

>"Young S. Cho" <[EMAIL PROTECTED]> wrote in message
>news:44848@palm-dev-forum...
>>
>> 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!
>>
>Have you looked at the FloatMgr.h file?  The prototypes are for
>"FlpAToF", but your code is using "FplAToF".  The 'p' and 'l' are
>transposed.  This would be caught at compile time (with CodeWarrior) if
>you with on the "Require Function Prototypes" switch, something I highly
>recommend.
--


-- 
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