In the following example, $customers{$custid}{total} = 194.55 and $total_payments = 194.55.
The above code gives me a result of: 2.8421709430404e-14 (this is the problem)
If I replace $total_payments with 194.55 ($customers{$custid}{total} -= 194.55;), it works properly and gives me a result of 0. Do I need to do something with $total_payments before subtracting it? Thanks in advance for your help.