Javascript Reference
Categories: Number

javascript Number Description

@March 15, 2008, 1:22 a.m.
NumberFirefox/Netscape/NN 3 IE 4 ECMA 1  


A Number object represents any numerical value, whether it is an integer or floating-point number. By and large, you don't have to worry about the Number object because a numerical value automatically becomes a Number object instance whenever you use such a value or assign it to a variable. On the other hand, you might want access to the static properties that only a math major would love.

toExponential( )toFixed( )toLocaleString( )toPrecision( )
toString( )valueOf( )
Creating a Number Object
var myValue = number;
var myValue = new Number(number);

Powered by Linode.