Standard C/C++ APIs are generally not supported in the Palm OS, read the SDK
docs for the Palm variants. So...
a) search through the list archives for some string to float and float to
string examples
b) look in floatmgr.h for some float/double convert functions (or
newfloatmgr.h if using 3.1 SDK), you will need to use the obsolete
float/double structures

----- Original Message -----
From: "Herbert Valliant" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 10:03 PM
Subject: Floating Point Input


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


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