Floating point numbers ("doubles") can be specified using any of the following syntaxes:

The size of a floating point number is platform-dependent, although a maximum of ~1.8e308 with a precision of roughly 14 decimal digits is a common value (that's 64 bit IEEE format).Warning |

It is quite usual that simple decimal fractions like
This is related to the fact that it is impossible to exactly
express some fractions in decimal notation with a finite number
of digits. For instance, So never trust floating number results to the last digit and never compare floating point numbers for equality. If you really need higher precision, you should use the arbitrary precision math functions or gmp functions instead. |