Table of contents
- 1. Summary
- 2. Description
- 3. Properties
- 4. Methods
Summary
Represents the prototype for the Number constructor.
Description
All Number instances inherit from Number.prototype. The prototype object of the Number constructor can be modified to affect all Number instances.
Properties
- constructor
- Returns the function that created this object's instance. By default this is the Number object.
Methods
- toExponential
- Returns a string representing the number in exponential notation.
- toFixed
- Returns a string representing the number in fixed-point notation.
- toLocaleString
- Returns a human readable string representing the number using the locale of the environment. Overrides the Object.prototype.toLocaleString method.
- toPrecision
- Returns a string representing the number to a specified precision in fixed-point or exponential notation.
- toSource
- Non-standard
- 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.
- toString
- Returns a string representing the specified object. Overrides the Object.prototype.toString method.
- valueOf
- Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf method.
Methods inherited from
Object:__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, watch