How can I convert numbers into scientific notation?

You can do something like this:

a = 200
a.toExponential(); //output 2e+2

fiddle:
http://jsfiddle.net/Q8avJ/9/

Leave a Comment