Core JavaScriptExtendScript only
Object

Number

Wraps a numeric value.

Properties

NameType AccessDescription
static Number = 1.7976931348623158e+308 readonly A constant representing the largest representable number.
static Number = 2.2250738585072014e-308 readonly A constant representing the smallest representable number.
static Number readonly A constant representing negative infinity.
static Number = NaN readonly A constant representing the special "Not a Number" value.
static Number readonly A constant representing positive infinity.

Methods

Number

Returns a new Number object set to the value of the argument converted to a number.

value Varies The value of the object being created.
Number

Converts the Number object to a string in scientific notation.

decimals Number The number of decimals.
Number

Converts the Number object to a string with fixed decimals.

decimals Number The number of decimals.
Number

Returns the value of a Number object converted to a string, using localized conventions.

Number

Converts the Number object to a string in either scientific or fixed notation, epending on its value.

decimals Number The number of decimals.
Number

Creates a string representation of this object that can be fed back to eval() to re-create an object. Works only with built-in classes.

Number

Returns the value of a Number object converted to a string.

radix? Number The optional conversion radix.
Number

Returns the value of a Number object as a primitive number.

Object of 30

Properties elsewhere that hold a Number.

Parameter of 63

Method parameters that accept a Number.

Return 75

Methods that return a Number.