I have to figure out how to calculate tax on a purchase in a perl script for Florida, USA.
example :
soccer ball $19.95 plus shipping and handling $6.95 plus Florida 6 percent tax.
My math says add 19.95 + 6.95 = 26.90.
add 6 percent to 26.90 = 1.614
totals at : $28.514
Okay how do I round off correctly in perl ? for the customer and the seller to both be happy ?
Is there a legal commerce formula for this that I can use in perl ?
Thanks
Kode -- not an accountant / or math whiz / or Florida merchant
example :
soccer ball $19.95 plus shipping and handling $6.95 plus Florida 6 percent tax.
My math says add 19.95 + 6.95 = 26.90.
add 6 percent to 26.90 = 1.614
totals at : $28.514
Okay how do I round off correctly in perl ? for the customer and the seller to both be happy ?
Is there a legal commerce formula for this that I can use in perl ?
Thanks
Kode -- not an accountant / or math whiz / or Florida merchant