Multiply by 100, print as an integer, decorate as necessary.
-- Keith
Steve Sabram <[EMAIL PROTECTED]> on 03/12/2000 09:03:55 AM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: Steve Sabram <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: Re: How do I round a float to 2 decimal places????
Don't be. There is no facility for this on the OS. You will need to write your
own rounding routine.
Steve
Palm Programming wrote:
> I feel stupid asking this, but how to I take a float that I have calculated
and format it so that
> it is rounded to 2 decimal places when I turn it into a string??????? Help!
>
> Steve Weintraut
> [EMAIL PROTECTED]
>
> --
> 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
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html