So I want to give JS a number in exponential notation. Amazingly, I haven't found a reference on how to do this.
Why doesn't this work?
var tempdec = 8.85956e-8;
I don't have to do
var tempdec = parseFloat('8.95956e-8');
...do I?
... answered below.
The upshot: It does work.
However, using var
in the console returns undefined
. But it works nonetheless.