Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Number Object

The Number object is an object representation of the number data type and placeholder for numeric constants.

Methods: JScript Number Object

JScript Number Object toString Method

Converts a Number object or variable to a string using the specified radix.

Properties: JScript Number Object

JScript Number Object MAX_VALUE Property

The largest number that can be represented in JScript.

JScript Number Object MIN_VALUE Property

The number closest to zero that can be represented in JScript.

JScript Number Object NaN Property

A special value that indicates an expression returned a value that was not a number.

JScript Number Object NEGATIVE_INFINITY Property

A value larger than the largest negative number that can be represented in JScript.

JScript Number Object POSITIVE_INFINITY Property

A value larger than the largest positive number that can be represented in JScript.

Syntax: JScript Number Object

new Number( value )

Arguments: JScript Number Object

value

is the sought numerical value for the object.

Remarks: JScript Number Object

JScript creates Number objects as required from numerical values. It is rarely necessary to create Number objects explicitly.

The primary purposes for the Number object are to collect its properties into one object, and to allow numbers to be converted into strings via the toString method.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.