This question has already been answered:
- ceil () php incorrectly thinks? 2 answers
I am writing this code:
$sum = 161.98; $sum = $sum * 100; var_dump($sum); // float(16198) var_dump((int)$sum); // int(16197) Why the unit is lost when converting to int