Results 1 - 20 of 25
The Number
JavaScript object is a wrapper object allowing you to work with numerical values. A Number
object is created using the Number()
constructor.
The
Number.EPSILON
property represents the difference between one and the smallest value greater than one that can be represented as a
Number
.
The Number.isFinite()
method determines whether the passed value is a finite number.
The Number.isInteger()
method determines whether the passed value is an integer.
The
Number.isNaN()
method determines whether the passed value is
NaN
. It is a more robust version of the original, global
isNaN()
.
The Number.isSafeInteger()
method determines whether the provided value is a number that is a safe integer . A safe integer is an integer that
The Number.MAX_SAFE_INTEGER
constant represents the maximum safe integer in JavaScript (253 - 1
).
The Number.MAX_VALUE
property represents the maximum numeric value representable in JavaScript.
The Number.MIN_SAFE_INTEGER
constant represents the minimum safe integer in JavaScript (-(253 - 1)
).
The Number.MIN_VALUE
property represents the smallest positive numeric value representable in JavaScript.
The
Number.NaN
property represents Not-A-Number. Equivalent of
NaN
.
The Number.NEGATIVE_INFINITY
property represents the negative Infinity value.
The
Number.parseFloat()
method parses a string argument and returns a floating point number. This method behaves identically to the global function
parseFloat()
and is part of ECMAScript 6 (its purpose is modularization of globals).
The Number.parseInt()
method parses a string argument and returns an integer of the specified radix or base.
The Number.POSITIVE_INFINITY
property represents the positive Infinity value.
The
Number.prototype
property represents the prototype for the
Number
constructor.
The toExponential()
method returns a string representing the Number object in exponential notation.
The toFixed()
method formats a number using fixed-point notation.
The Number.toInteger()
method used to evaluate the passed value and convert it to an integer, but its implementation has been removed.
The
toPrecision()
method returns a string representing the
Number
object to the specified precision.