If you're working with money, it is generally accepted to use integers.  I
think the problem is not that floats are rounded but rather that they
aren't. (at least in the way we expect when working with a PC or Mac)
Its not too difficult to calculate your own rounding corrections when making
complex calculations. If I remember correctly, adding a rounding correction
somewhere around the 5 or 6th decimal place usually works.

----- Original Message -----
From: "ajitnk" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 11:08 PM
Subject: Floating point numbers rounding off


> Hi everybody,
>
> i am trying to add up a set of floating point numbers.
> but i don't want the result to be rounded off during addition.
> Is there any way to prevent rounding off OR do i have to use different
data
> type ?
>
>
> any guesses ?
>
> Thanx
> Regards
> Ajit
>
>
>
>
> --
> 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