title: Canonical double format from ecmascript
body: <p>I'm trying to figure out what exactly the ECMAScript of a non-integral number is. I believe this is covered under: double-precision 64-bit binary format IEEE <a href="https://262.ecma-international.org/" rel="nofollow noreferrer">here</a>. However, what might be some practical examples of formatting? For example, given the following numbers:</p>
  <pre><code>1.2
  1.2e0
  -1.2
  .00005
  -0.00005
  </code></pre>
  <p>Is there a function or something similar that will do a <code>toString()</code> or something that gives the scientific notation from the standard, such as <code>1.2E+0</code> or whatever it may be.</p>