Skip to content Skip to sidebar Skip to footer

Not Getting The Proper Output In Number Format

I am formating numbers in locale US. The problem i am facing is that it's not displaying the exact number user gives rather it's displaying upto 8 digit number. In the childview it

Solution 1:

The problem is that double cannot hold so many significant digits (mantissa). You should use BigDecimal here otherwise you can always lose precision.


Post a Comment for "Not Getting The Proper Output In Number Format"