Numeric properties
- Max_value
- Min_value
- Negative_infinity
- Positive_infinity
- NaN
- Prototype
- Constructor
Digital method
- Toexponential ()
- ToFixed ()
- Toprecision ()
- ToString ()
- ValueOf ()
Infinity (Infinity)
When the result of a numeric operation exceeds the upper limit (overflow) of the number that JavaScript can represent, the result is a special infinity (infinity) value, expressed as infinity in JavaScript. Similarly, when the value of a negative number exceeds the range of negative numbers that JavaScript can represent, the result is negative infinity, represented by-infinity in JavaScript. The behavior characteristics of infinite values are consistent with what we expect: based on their addition, subtraction, multiplication, and divide operations, or infinity (and, of course, their positive and negative numbers).
NaN-Non-numeric value
The NaN property is a special value that represents a non-numeric value. This property is used to indicate that a value is not a number. You can set the number object to this value to indicate that it is not a numeric value.
You can use the IsNaN () global function to determine whether a value is a NaN value.
JS Number Object