Core Object | NN | IE | ECMA |
Number | Object for primitive numeric values. | 3+ | 3+ | ECMA 1 |
|
Methods | NN | IE | ECMA |
toLocaleString() | String value of a Number object, in local value format. | n/a | 3+ | ECMA 1 |
toString() | Returns a string representing the object. | 3+ | 3+ | ECMA 1 |
valueOf() | The numeric value. (no effect for Number objects.) | 2+ | 4+ | ECMA 1 |
|
Properties | NN | IE | ECMA |
constructor | Reference to the function that created an object. | 2+ | 4+ | ECMA 1 |
MAX_VALUE | Largest number representable. (~1.79E+308). | 3+ | 3+ | ECMA 1 |
MIN_VALUE | Smallest number representable. (~5.00E-324) | 3+ | 3+ | ECMA 1 |
NaN | Special "not a number" value. | 3+ | 3+ | ECMA 1 |
NEGATIVE_INFINITY | Negative infinity, displayed as "-Infinity". | 3+ | 3+ | ECMA 1 |
POSITIVE_INFINITY | Positive infinity, displayed as "Infinity". | 3+ | 3+ | ECMA 1 |
prototype | Creates a new method for Number objects | 2+ | 4+ | ECMA 1 |