Number
Methods
numObj.toExponential()
- Returns a string representing the number in exponential notation.
numObj.toFixed()
- Returns a string representing the number in fixed-point notation.
numObj.toLocaleString()
- Returns a string with a language sensitive representation of this number. Overrides the Object.prototype.toLocaleString() method.
numObj.toPrecision()
- Returns a string representing the number to a specified precision in fixed-point or exponential notation.
numObj.toSource()
- Returns an object literal representing the specified Number object; you can use this value to create a new object. Overrides the Object.prototype.toSource() method.
numObj.toString()
- Returns a string representing the specified object in the specified radix (base). Overrides the Object.prototype.toString() method.
numObj.valueOf()
- Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf() method.
Created by Mozilla Contributors, license: CC-BY-SA 2.5