toFixed() method : Number Constructors : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Number Constructors »

 

toFixed() method













var oNumberObject = new Number(99);

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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Number Constructors