'How to display number with all decimal (not Science notation) android? [duplicate]
How can I show the full number instead of the scientific number when you perfonm a division this long.
9.34429093014885 / 10000000
I want to display:
0.000000034429093014885
But it keep returning:
9.34429093014885E-7
JAVA
Double value = ( price / exponent);
Solution 1:[1]
BigDecimal.valueOf(9.34429093014885 / 10000000).toPlainString()
Gives your expected result
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Udhaya |
