Hi I am using a script to add up values of a form.
the values are dollar variables,
the first entry is for 20 cent pieces the second for 50 cents and so on (im from nz so yes we do have these values here)
before the script adds up the amount worth i want to check to see whether or not the value entered is a multiple of the currency,
for exampe if someone entered 1 dollar in the 20 cent form it would be correct,
but if some one entered 90 cents in the form it would be false,
im guessin you could just divide the value entered by the value of the currency and check to see whether it is a whole number but i have no idea how to do this,
can anyone help?
thanks
the values are dollar variables,
the first entry is for 20 cent pieces the second for 50 cents and so on (im from nz so yes we do have these values here)
before the script adds up the amount worth i want to check to see whether or not the value entered is a multiple of the currency,
for exampe if someone entered 1 dollar in the 20 cent form it would be correct,
but if some one entered 90 cents in the form it would be false,
im guessin you could just divide the value entered by the value of the currency and check to see whether it is a whole number but i have no idea how to do this,
can anyone help?
thanks