We have hit a PHP mine!

Floating point numbers. http://php.net/manual/en/language.types.float.php When you compare two variables holding decimal values, NEVER trust the comparison operators. Basically, just use a mathematical function like round(). This is taken from PHP’s website: “Warning Floating point precision It is typical that simple decimal fractions like 0.1 or 0.7 cannot be converted into their internal binary counterparts without … Read moreWe have hit a PHP mine!