?
This document uses PHP Chinese website manual Release
JScript? | 語言參考 |
代表數(shù)值數(shù)據(jù)類型和提供數(shù)值常數(shù)的對象。
numObj = new Number(value)
numobj
必選項。要賦值為 Number 對象的變量名。
value
必選項。Required. The numeric value of the Number object being created.
value 參數(shù)是對象的數(shù)字值。
JScript 根據(jù)數(shù)字值的要求創(chuàng)建 Number 對象。 很少有必要顯式創(chuàng)建 Number 對象。
Number 對象最主要的用途是將其屬性集中到一個對象中,以及使數(shù)字能夠通過 toString 方法轉(zhuǎn)換為字符串。
MAX_VALUE 屬性 | MIN_VALUE 屬性 | NaN 屬性 | NEGATIVE_INFINITY 屬性 | POSITIVE_INFINITY 屬性 | constructor 屬性 | prototype 屬性
toLocaleString 方法 | toString 方法 | valueOf 方法
版本 1
Math 對象 | new 運算符