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). 开发者_StackOverflowanyway to avoid the exponent?
See String.format
documentation.
Just set the desired format for your numbers. You probably want String.format("%f",number)
.
精彩评论