In base-2 floating-point arithmetic, 0.3 and 0.9 are repeating
fractions, not exact numbers. You can exert some control over formatting
of floating-point numbers with java.text.NumberFormat to hide this, but
it's just a fact of binary arithmetic.

Nathan


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to