Posted by Keith Smith on September 21, 2007 at 14:10:49:
Been programming for decades and got caught up with this one.
LENGTH 12.4 & LOCAL A,B,C
LENGTH 9.2 & LOCAL GROSS,DEDAMT
...
GROSS=1092.00
DEDAMT=0
DEDPER=1.50
B=GROSS & C=DEDPER*.01
A=(B*C)+.005
DEDAMT=A
If you do the above exactly, the PDEDAMT will be 10.92 not 16.38 that you would expect. To fix this I did this:
B=GROSS & C=DEDPER*.0100
Any Docs out there that explains the little rules of engagement??