I'm trying to convert the
string "999999.99" to a float, but Float.valueOf( s ) is rounding up to 1000000.00.
Here's what the API says:
...it is regarded as representing an exact decimal value in the usual "computerized scientific notation"; this exact decimal value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type float by the usual round-to-nearest rule of IEEE 754 floating-point arithmetic.
Does anyone know a work-around to prevent the rounding?
[This message has been edited by Bob Graffagnino (edited November 07, 2001).]