How to work around the computation limitation of Javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/744099/is-there-a-good-javascript-bigdecimal-library">Is there a good Javascript BigDecimal library?</a>  </p>
</blockquote>



<ol>
<li><p>Go to the following link
<a href="http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_max_value" rel="nofollow">http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_max_value</a></p></li>
<li><p>Paste the following code in the left text script area</p></li>
</ol>

<hr>

<pre><code>&lt;html&gt;    
&lt;body&gt;
    &lt;script type="text/javascript"&gt;
        document.write(parseFloat("999999999999999"));
        document.write("");
        document.write(parseFloat("555555555555555555555555.99"));
        document.write("");
        document.write(parseInt("9999999999999999.99"));

        document.write("");
        document.write(parseInt("88888888888888888",10));
        document.write("");
        document.write(parseFloat("88888888888888888"));
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<hr>

<p>then press "Edit and Click me".</p>

<p>You will notice that the conversion from string to a valid number is buggy. This is a known limitation in javascript up to 15 digits(?). I know that if it is a JS limitation then we can't do anything about it. But in the ajax enterprise world, we will always need to compute lots in the browser. And with the advent of node.js in the server-side, this is no longer tolerable and the community need to find a solution to circumvent, if not solve, this problem once and for all. </p>

<p>My boss found a <a href="http://www.petting-zoo.org/Calculator.html" rel="nofollow">high precision Javascript calculator</a> but it is cpu hogging. Another solution is to give that to the server-side but that will increase "chattiness" which is an anti-pattern. What I am asking is, how would you solve this? </p>

<p>Please correct me If I am wrong in any of the things I stated above.</p>
