July 1998
Intermediate to advanced
1456 pages
65h 5m
English
Number — NN 3 IE J2 ECMA 1
A Number
object represents any numerical
value, whether it is an integer or floating-point number. By and
large, you don’t have to worry about the
Number object because a numerical value
automatically becomes a Number object instance
whenever you use such a value or assign it to a variable. On the
other hand, you might want access to the static properties that only
a math major would love.
var myValue =numbervar myValue = new Number(number)
MAX_VALUE |
NaN |
NEGATIVE_INFINITY |
POSITIVE_INFINITY |
prototype |
MIN_VALUE |
toString() |
valueOf() |
Read now
Unlock full access