JavaScript Number class has helper methods for number processing.
Property | Description |
Number constructor Property | In JavaScript, the constructor property returns the constructor function for an object. |
Number MAX_VALUE Property | The MAX_VALUE property returns the largest number possible in JavaScript. |
Number MIN_VALUE Property | The MIN_VALUE property returns the smallest positive number possible in JavaScript. |
Number NEGATIVE_INFINITY Property | The NEGATIVE_INFINITY property represents negative infinity. |
Number NaN Property | The NaN property represents "Not-a-Number" value. This property indicates that a value is not a legal number. |
Number POSITIVE_INFINITY Property | The POSITIVE_INFINITY property represents positive infinity. |
Number prototype Property | The prototype constructor can add new properties and methods to JavaScript Number class. |
Method | Description |
Number isFinite() Method | The Number.isFinite() method returns whether a value is a finite number. |
Number isInteger() Method | The Number.isInteger() method determines whether a value an integer. |
Number isNaN() Method | The Number.isNaN() method determines whether a value is NaN (Not-A-Number). |
Number isSafeInteger() Method | The Number.isSafeInteger() method determines whether a value is a safe integer. |
Number toExponential() Method | The toExponential() method converts a number into an exponential notation. |
Number toFixed() Method | The toFixed() method converts a number into a string keeping a specified number of decimals. |
Number toPrecision() Method | The toPrecision() method formats a number to a specified length. |
Number toString() Method | The toString() method converts a number to a string. |
Number valueOf() Method | The valueOf() method returns the primitive value of a number. |