03-10-2010 08:47 PM
Speaking of rounding errors...
I discovered one worthy of note using the method posted above. Using a value of 12345678.012 results in 12345678.1 instead of 12345678.01.
The remainder calculation treats the first digit after the decimal point as a leading zero after the decimal moves to the right.
06-27-2012 10:08 AM
i tried to find a solution to convert double to string and found out that, the following code solved the issue for me.. Any thing you guys can think of whcih might not work with this solution?
Formatter format = new Formatter(); format.formatNumber(doublevalue, 2);