Javascript Number float()
float()
Number.prototype.float = function(){ return x.toFixed(2); } var x = 90;// w ww . j a v a 2 s . com console.log(x.float());