How to convert numbers from exponential to normal form in Android?
+1
A:
I believe what you are asking is how do you do this in Java and by normal I'll assume you mean as either a float or double. Java doesn't have a built in exponential type, but you can display them in that form when viewing them. I'll assume the numbers that you want "converted" are a string so this is what you can do:
double d = Double.parseDouble("1.23e+4");
David Glass
2009-12-11 11:45:35
thnxs for ur help.
deepthi
2010-02-16 10:59:12