when does javascript automatically show numbers in exponential notation
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&#39;s Math broken?</a>  </p>
</blockquote>



<p>I know that javascript only handels a specific range of numbers before funny stuff happens.</p>

<p>How many numbers have to be visible before javascript automaticaly converts it to exponential notation.</p>

<pre><code>1111111111111111111111111111111111111111111111111111111111
// turns into 1.11111111111111E+57

//and

var num = 1.11111111111111E+57;
var s = num.toFixed(2);

//s equals 1111111111111110000000000000000000000000000000000000000000.00
// why are all the 1's lost and converted to 0's
</code></pre>

<p>Do you know what the range is </p>

<p>is it 20 digits in total
or 20 before and 20 after the dot</p>

<p>I dont really understand this or why it happens</p>

<p>thanks</p>
