$number = 628.30 * 100;
print_r([
'raw' => $number,
'int' => (int)$number,
]);
// Array ( [raw] => 62830 [int] => 62829 )
What's the best way to avoid this?
$number = 628.30 * 100;
print_r([
'raw' => $number,
'int' => (int)$number,
]);
// Array ( [raw] => 62830 [int] => 62829 )
What's the best way to avoid this?