Floating point numbers (AKA "floats", "doubles" or "real numbers") can be specified using any of the following syntaxes:

$a = 1.234; $a = 1.2e3; $a = 7E-10; |

Floating point precision |

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. |