Reputation: 1
in android eclipse sometimes a calculation result for both double and float when displayed as a string uses a decimal point (desired) but sometimes using an exponent (bad - confusing to user). anyway to avoid the exponent?
Upvotes: 0
Views: 571
Reputation: 23465
See String.format
documentation.
Just set the desired format for your numbers. You probably want String.format("%f",number)
.
Upvotes: 1