Problem with mathamatical calculation in JQUERY
<p>I have two text boxes. I enter number in one textbox. I write following JQUERY for that textbox which get executed when the focus out from first text box. The JQUERY code takes the entered value from first text box and multiply it by a decimal number 34.95 and display the answer in second text box.</p>

<p>The code is doing the calculation little bit ok because</p>

<p><strong>when I enter the value 1000 in first text box it gives answer 34950 in second textbox and when I enter the value 100 in first text box it gives answer 3495.0000000000005 in second text box.</strong></p>

<p>**Please any one tell me what is the problem. is problem is in my JQUERY code.</p>

<ol>
<li><p>I also want to show the answer always in decimal point. </p></li>
<li><p>Answer should always dislply only two digits after decimal point. so How to achieve this too.**</p></li>
</ol>

<p>This is my JQUERY code.</p>

<pre><code>  $("#id_pvalue").focusout(function() {
        q=$("#id_pvalue").val();
        var ans=q*34.95;
        $("#id_tvalue").val(ans);
  });
</code></pre>

<p>Please guide me friends!</p>

<p>Thank You!</p>
