Numeric operations


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

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??


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]