toFixed() method : Number Constructors « Number Data Type « JavaScript Tutorial






var oNumberObject = new Number(99);

alert(oNumberObject.toFixed(2));    //outputs "99.00"








5.6.Number Constructors
5.6.1.The Number Class
5.6.2.toFixed() method
5.6.3.Create Number object