Number

The Number Data Type is used to describe numbers.

These numbers can contain decimals such as 3.14159. Negative Numbers are represented by
preceding the number with a negative sign: -3.14159. Very large or small numbers can be entered using scientific notation which multiplies a base Number by some multiple of ten.

For example, the Number 2.99792458E8 is the same number as 299792458 by multiplying the Number 2.99792458 by 100000000, which has eight zeros. Likewise for negative numbers, the Number 6.62607004E-34 is the same number as 0.000000000000000000000000000000000062607004.

 

Internally, Number's are represented as double-precision 64-bit binary format IEEE 754 values. For most use cases, this is an unimportant detail, however it is important to keep in mind as certain numbers cannot be represented accurately. For example the expression 0.1 + 0.2 will evaluate to 0.30000000000000004 rather than 0.3 exactly.