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