I have a double whose value is 10,000,000.00 (ten millions). I have to
convert it to a String
. When using the method toString
I am getting the String
"1.0E7" which is correct following the specification. Unfortunately I need
the String
"10,000,000.00" (or the equivalent depending on the locale).
How can achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…