If you only need "dollars and cents", perhaps you could rethink your data. I
use a long. I convert the string to a long (the number * 100) and store as a
long. Then I convert back for the display string.

Your needs may vary but this works for me with no need for doubles.

--Alan

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Palm
> Programming
> Sent: Sunday, March 12, 2000 5:49 PM
> To: Palm Developer Forum
> Subject: Getting "60.05" not to print "6.005000e01"!!!!
>
>
> I cry uncle! OK, I realize this is a trivial thing, but every
> other OS i've ever programmed for has
> had utilities to handle this.
>
> I have a float, say it's 60.05
>
> If I use the built-in "NewFloatManager" calls to convert it to a
> string I get
>
> "6.0050001e01" instead of 60.05
>
> I'd like my users to see "60.05", it's not asking that much is it?
>
> First, I'm amazed their isn't a standard library for handling
> this in the Palm.
>
> 2nd, I'm sure some bright programmer who is infinitely more
> talented than I already has a set of
> routines to deal with this?
>
> Any help is greatly appreciated!!!!!!!!!
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to