# If working with cents $tax_amount = sprintf('%.0f', $amount * $tax_rate);