Include the NewFloatMgr and the following code should do it.
char StringFloat[100];
FlpCompDouble testfloat;
float pFloatToDisplay;
testfloat.d = pFloatToDisplay;
FlpFToA(testfloat.fd,StringFloat);
-----Original Message-----
From: Edmond Chan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 2:07 PM
To: Palm Developer Forum
Subject: Display a float on screen
Hi all,
I need to display the value of a float variable on the PDA screen. The
String Manager only provides functions to convert integers to string.
StrPrintF does not handle %f to format float, like ANSI C printf() does.
Would anyone please advise how to display a float on screen? It must have
been done before...
Thanks,
Edmond
--
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/