I have a payment form, the client requested an additional 2.5% charge on the total, after some playing I have come up with this:
$('#pay_amount').val($('#amount').val() * 1.025);
You can see it working here: FIDDLE
My question/issue is can the total be rounded up/down to just two digits e.g. if you add the amount as "6" the total is: 6.1499999999999995 can this be 6.14 or rounded up to 6.15 Same if you enter "100"