Number


Syntax
  • 42
  • -345
  • 3.1415
  • -3.1E12
  • .1e12
  • 2E-12
Usage
  • Double-precision floating-point values.
  • The Number class is a wrapper for the Number data type.
Properties
  • MAX_VALUE : The largest representable number.
  • MIN_VALUE : The smallest representable number.
  • NaN : Not a Number.
  • NEGATIVE_INFINITY : Negative infinity.
  • POSITIVE_INFINITY : Positive infinity (same value as the global variable Infinity).
Methods
  • valueOf() : Returns the numeric value.