Round Off the number to two decimal places in jQuery
Round Off the number to two decimal places in JQuery.
[js]
var num=2.48776582879546876542576876875325438965235;
alert( num.toFixed(2));
[/js]
Here toFixed is the function which does the operation. You can set as you want it.