Anyway… Take a look at this screenshot.
If your math skills are above the 1st-grade level, you probably know that 60.73 + 5 = 65.73, not 65.72!. This screen worked correctly with 60.72, but 60.73, and the internet gods get a 1 cent bonus.
The code for this is as about as straight forward as possible.
edtTotalPayment = edtOtherAmount + edtConvenienceFee
That code is in the browser code, no need to do a trip to the server for simple math, right?
Trace(edtOtherAmount) Trace(edtConvenienceFee) Trace(edtOtherAmount + edtConvenienceFee)
60.73 5.00 65.72999999
My first attempt at a fix was:
edtTotalPayment = Round(edtOtherAmount,2)+ Round(edtConvenienceFee,2)
So to solve the problem and quit donating random pennies to the internet gods, I had to change the line to:
edtTotalPayment = Round(edtOtherAmount + edtConvenienceFee,2)
And the moral of the story is if you have any browser code doing simple math you might want to check it!