Numbers can be written with, or without decimals.
Extra large or extra small numbers can be written with scientific (exponent) notation:
Integers (numbers without a period or exponent notation) are considered accurate up to 15 digits.
The maximum number of decimals is 17, but floating point arithmetic is not always 100% accurate:
zero, and as hexadecimal if they are preceded by a zero and
|Never write a number with a leading zero, unless you want an octal conversion.|
For a complete reference of all the properties and methods that can be used with the Number object, go to our Complete Number Object Reference.
The reference contains both descriptions and examples, for each property and method.
Your message has been sent to W3Schools.