try this...

float num;
char str[5];

StrSprintf(str,"%1.2f",num);


John



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Saturday, November 11, 2000 12:09 PM
To: Palm Developer Forum
Subject: How do I convert a string to a number floating


Hello,

Could you help me, please!!!


How do I convert a string like "7.41" into a number floating like 7.41
instead   7.409999


Regards,
Marco

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