It did help and the application worked.
thanks for your help.
--- James Nicholls <[EMAIL PROTECTED]> wrote:
> If your numbers can fit into a FloatType, you can
> use FplAToF to convert
> ASCII to float and FplFToA to convert float to
> ASCII. You can use FplSub to
> substract to FloatTypes or you can use the usual -
> operator. See the Float
> Manager under System Management in the Palm OS
> Reference manual for more
> details.
>
> If you need double precision, that I'm sure you'll
> have to convert to/from
> ASCII manually. I think theres was a dicussion
> about this last month or
> few weeks ago.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]]On
> Behalf Of nethi
> murali
> Sent: Tuesday, 31 July 2001 15:52
> To: Palm Developer Forum
> Subject: floating point numbers problem
>
>
> Hi all..
>
> I am not sure if I am asking a very basic question.
> Sorry if I am, but i did read through the docs to
> figure out myself but could not get to the answer. I
> am having problem in subtracting two floating point
> numbers.
>
> I need to read ascii data coming from serial port,
> as
> string, which is a foating point number. then I need
> to subract the two numbers and display result in
> text
> field.
>
> if i use UInt32 StrAToI(Char *) function, after
> reading the data, then I am just getting an integer
> value, and not a floating point value. it is
> obvious,
> because the function only returns UInt32. also,
> after
> subraction, if I am trying to display the subracted
> value, then when i convert it into string, I am
> getting the truncated value.
>
> am I missing out some other functions in Palm KB?
> I shall be thankful if somebody can give a
> suggestion
> in this regard.
>
> thanks
> murali.
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe,
> please see
> http://www.palmos.com/dev/tech/support/forums/
>
>
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/