<?php $customerCredit = 105.00; $customerCredit = round($customerCredit - 100.00, 2); $customerCredit = round($customerCredit - 4.95, 2); $customerCredit = round($customerCredit - 0.05, 2); if ($customerCredit > 0) { echo 'Go for it!'; } elseif ($customerCredit == 0.0) { echo 'Zero balance, sorry'; } else { echo 'Omg, your balance is negative'; }
You have javascript disabled. You will not be able to edit any code.