Floating point number are a *very* recurring topic on this group.

There are simple routines you can paste into your code to do this.

GetDoubleFromString is one I use, and has been posted here a few times.
Check the archives.. the full source is in there.

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
Australia
"Herbert Valliant" <[EMAIL PROTECTED]> wrote in message
news:44463@palm-dev-forum...
>
>
> 2001/04/2
>
> Dear Listers
>
> I need to enter a few floating point numbers, either in decimal
> or scientific notation to do some simple arithmetic. I thought,
> perhaps rather naively, that this would be fairly straight
> forward. I thought that a string could be entered in an editable
> field which then could be operated on with sscanf to unformat it.
> To my dismay I find that the string manager only supports
> StrPrintF and not the inverse. The Companion indicates that
> standard C functions might be used at the expense of larger code
> but also cautions that many "don't work" (page 101).
>
> I also examined the calculator example but that seems to be
> incredibly complex for a simple task.
>
> Questions:
>
> 1) Can sscanf be used and if so what header would be needed?
> 2) Can anybody suggest a neat way to input floating point
> numbers?
>
> Sincerely and thanks in advance
> H.D. Valliant
>
>
>
>
>
>
>



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