Javascript Number float()

Description

Javascript Number 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());



PreviousNext

Related