Javascript unexpected result
<p>I am doing an calculation in java script but i am facing a problem due to precision in decimal numbers.
I can not post the exact calculation but this is what i am doing which leads to an unexpected result </p>

<p>When i write :
<code>alert(100.01-36.01);</code> // result is 64</p>

<p>But when i write :
<code>alert(100.01-37.01);</code>  //result is 63.00000000000001</p>

<p>and it goes on like this for 38.01....so on.
Can any please help me to why this is showing such an unexpected behavior.
I am stuck  in a calculation.</p>

<p>Thanks in advance.</p>
