← Reference

Number

Number type, constants, and parsing functions.

Number.isFinite()

Determines whether the passed value is a finite number, returning true for finite numbers and false for Infinity, -Infinity, NaN, and non-numbers.

Number.isFinite(value)

Number.isInteger()

Determines whether the passed value is an integer, returning true only for finite integer values.

Number.isInteger(value)

Number.isNaN()

Determine whether the passed value is NaN (Not-a-Number).

isNaN(number)

Number.prototype.toFixed()

Format a number using a fixed number of decimal places.

toFixed(digits)

Number.prototype.toPrecision()

Format a number using a specified total precision.

toPrecision(precision)

Number.prototype.toString()

Convert a number to a string, optionally using a radix.

toString(radix)