2

I want to print a double No. in TextView like this format 10699657.6, currently this is like 1.06996576E7 . please can any one help me?

Kalu Khan Luhar
  • 1,044
  • 1
  • 22
  • 35

2 Answers2

5
DecimalFormat dform = new DecimalFormat("0.###E0");

Similar question found here: Convert scientific notation to decimal notation

Community
  • 1
  • 1
Ahmad
  • 12,336
  • 6
  • 48
  • 88
  • @WasimAkram you still did not accept the answer. Click the CHECK MARK next to my answer and it will be green indicating that you accepted the answer – Ahmad Nov 05 '12 at 10:21
0

There is DecimalFormat class, which does exactly what you want.

Angelo.Hannes
  • 1,729
  • 1
  • 18
  • 46