THP Logo THP

Number

The Number object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor.

Functions

Returns a string representing the Number object in exponential notation.

Formats a number using fixed-point notation.

Returns a string with a language-sensitive representation of this number.

Returns a string representing the Number object to the specified precision.

Returns a string representing the specified Number object.

Returns the wrapped primitive value of a Number object.

Determines whether the passed value is a finite number.

Determines whether the passed value is an integer.

Determines whether the passed value is NaN and its type is Number.

Parses a string argument and returns a floating point number.

Parses a string argument and returns an integer of the specified radix.

See Also