Mozilla.com

Table of contents
  1. 1. Summary
  2. 2. Description
Table of contents
  1. 1. Summary
  2. 2. Description

Summary

Represents the prototype for the Number constructor.

Description

All Number instances inherit from </div>Number.prototype</code>. The prototype object of the Core_JavaScript_1.5_Reference:Global_Objects:NumberNumber constructor can be modified to affect all <code>Number instances. == Properties ==
constructor
Returns the function that created this object's instance. By default this is the Core_JavaScript_1.5_Reference:Global_Objects:Number
== 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.

</div>

Languages

Page last modified 06:27, 2 Mar 2008 by Sevenspade

Tags:

Files (0)