Re: float to double conversion mistake??
Posted By:
Michael_Wax
Posted On:
Monday, June 11, 2001 01:44 PM
This is not a mistake. Use of float and double does not guarantee accuracy to the number of decimal places you seek, as the internal representation of your number will likely not correspond precisely to the number you entered. If you need to maintain your number as 123.456, then you should use the BigDecimal class.