tags:

views:

182

answers:

1

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
thnxs for ur help.
deepthi