N Number() (Function) Warnings: . Note that
N Number() (Function) Warnings: . Note that unlike the Object()constructor, which can be called without its parentheses, calling the Number() constructor without them yields an uninitialized object. See also: Constructor function, constructor property, Global object, new, Number.prototype, Object constant, Object() Cross-references: ECMA 262 edition 2 section 15.1.3.6 ECMA 262 edition 2 section 15.7.1 ECMA 262 edition 2 section 15.7.3.1 ECMA 262 edition 3 section 15.7.2 Number() (Function) A Number type convertor. Number(aValue) - aValue A value to be converted to a number. When the Number() constructor is called as a function, it will perform a type conversion. The following values are yielded as a result of calling Number() as a function: Argument list: Availability: ECMAScript edition 2 JavaScript 1.2 JScript 1.0 Internet Explorer 3.02 Netscape 4.0 Property/method value type: Number primitive -Number()JavaScript syntax: Value Result No value 0 Undefined Returns NaN Null 0 Boolean false 0 Boolean true 1 Number No conversion, the input value is returned unchanged. Non numeric string NaN Numeric string The numeric value rounded down if the number of digits exceeds the numeric accuracy specified by Number.MAX_VALUE. Table continued on following page 1553