| ★ wanayoo — archive 1999 http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number | Nouvelle recherche | Portail wanayoo |
The primary uses for the Number object are:
If the argument cannot be converted into a number, it returns Nan.
In a non-constructor context (i.e., without the new operator), Number can be used to perform a type conversion.
For properties inherited by Number instances, see Properties of Number instances.
Properties inherited from Function.prototype
caller, constructor, length, name
For methods inherited by Number instances, see Methods of Number instances.
Although the Number object contains no methods of its own, it does inherit some methods through the prototype chain.
Methods inherited from Object.prototype
__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, watch
Number instances All Number instances inherit from Core_JavaScript_1.5_Reference:Global_Objects:Number:prototype
Number object to assign values to numeric variables The following example uses the Number object's properties to assign values to several numeric variables:
biggestNum = Number.MAX_VALUE; smallestNum = Number.MIN_VALUE; infiniteNum = Number.POSITIVE_INFINITY; negInfiniteNum = Number.NEGATIVE_INFINITY; notANum = Number.NaN;
Page last modified 13:03, 6 Apr 2008 by Potappo