Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 101
Chapter 2 Program Instructions
FORMAT$, cont.
Examples, cont.
Subtraction. The third parameter will be subtracted from the fi rst.
A$=FLOATCALC$("234.90","-","100.013",2)
PRINT A$
yields:
"134.88"
PRINT FORMAT$(A$,"\$ 0,000#")
yields:
"$ 134,880"
Note: If a higher precision is used in
FLOATCALC$, A$ will yield
"$134,887".
Multiplication
B$="3"
A$=FLOATCALC$("100", "*", B$, 1)
PRINT A$
yields:
"
300.0"
C$="0 0 0,00###"
PRINT FORMAT$(A$,C$)
yields:
"3 0 0,00"
Division. The fi rst parameter will be divided by the third.
B$="1.0"
A$=FLOATCALC$(B$,"/","3.0")
PRINT A$
yields:
"0.3333333333"
PRINT FORMAT$(A$,"\$ 000.00###")
yields:
"$ 000.33333"