--
"dilek.ozgu" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> hi.
> double xx;
>  xx = 816 / 10 => 81.5999999 ??????????
> it must be 81.60 what is the solution?
>

This is the word of floating point maths.
You must do a rounding at the precision that you want.
If you need 2 digits, you round according to the digit #3.
Than 81.599999 will become 81.60

-- 
Regis St-Gelais, P. Eng. / ing.
Software Development / D�veloppement informatique
www.laubrass.com



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to