I\'trying to convert a float to an int value in php:
var_dump((int)(39.3 * 100.0)); //Returns 3929 but should be 3930! var_dump((int)(39.2 * 100.0)); //Retur
You should have a look at this page: http://php.net/manual/en/language.types.float.php. It describes the pitfalls working with floating point numbers.