0

I encountered a problem in android, for example:

Number 78900000 will show 7.8E7 and not the number itself.

DecimalFormat df2 = new DecimalFormat("#########.00"); dd2dec = new Double(df2.format(number).doubleValue()); 

How can I format the number and show it in original form without in scientific form ?

1 Answer 1

1

I believe this might help:

format("%,d", (number)); //Displays with commas placed appropriately. format("%,d", (number)); //Displays un-formatted integer. 

Android Formatting Documentation

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.