Name

Number — support for numbers

Availability

Core JavaScript 1.1; ECMA-262

Synopsis

Number.constant

Constructor

new Number(value)
Number(value)

Constants

Number.MAX_VALUE

The maximum numeric value.

Number.MIN_VALUE

The minimum numeric value.

Number.NaN

The special not-a-number value.

Number.NEGATIVE_INFINITY

Negative infinity.

Number.POSITIVE_INFINITY

Infinity.

Methods

toString(radix)

Convert a number to a string.

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.