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,066
  • 1
  • 22
  • 33

2 Answers2

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

Similar question found here: Convert scientific notation to decimal notation

Community
  • 1
  • 1
Ahmad
  • 11,639
  • 6
  • 48
  • 79
  • @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,689
  • 1
  • 17
  • 41