whole number in javascript?
<p>I get 28.6813276578 when i multiply 2 numbers a and b, how can i make it whole number with less digits </p>

<p>and also, when i multiply again i get results after first reult like 28.681321405.4428.68 how to get only one result ?</p>

<pre><code>&lt;script&gt;
    $(document).ready(function(){
    $("#total").hide();
    $("#form1").submit(function(){

    var a = parseFloat($("#user_price").val());
    var b = parseFloat($("#selling").val());
    var total = a*b; 



    $("#total").append(total)
    .show('slow')
    .css({"background":"yellow","font-size":50})
    ;
    return false;   
    });

    });
&lt;/script&gt;
</code></pre>
