I have the following code
$amount1 = 7299; $amount2 = 72.9875; $amount2_in_cents = round($amount2, 2) * 100; if ($amount1 != $amount2_in_cents) { echo
Use
round() $float_val = 4.5; $float_val = round($float_val);
now Compare