Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  87
Chapter 2 Program Instructions
FLOATCALC$
Field of Application
 Function for calculation with fl oat numbers.
Syntax FLOATCALC$(<sexp
1
>,<sexp
2
>,<sexp
3
>[,<nexp
1
>])
<sexp
1
> is the fi rst operand.
<sexp
2
> is the operator (+, -, *, or /).
<sexp
3
> is the second operand.
<nexp
1
>  is, optionally, the precision in decimals (default 10).
Remarks
 Operands are fl oat numbers, that is, a string of digits with a decimal point to 
separate decimals from integers. Operands can also contain leading plus 
(+), minus (-), and space characters. Space characters are ignored, whereas 
the usual mathematical rules apply to plus and minus signs. All other 
characters (or plus, minus, and space characters in other positions than 
leading) generate errors.
 Note the mathematical rules:
 - -   yields  +
 - +   yields -
 + -   yields -
 + +   yields + 
 The following arithmetic operators are allowed:
 +  addition  ASCII 043 dec
 -  subtraction  ASCII 045 dec
 *  multiplication  ASCII 042 dec
 /  division  ASCII 047 dec
 Any other type of operators or other characters will generate an error.
 The  precision  parameter  optionally  specifi es the number of decimals in 
the result of the calculation. The result will be truncated accordingly. For 
example, if the number of decimals is specifi ed as 5, the result 5.76123999 
will be presented as 5.76123.
 The  result  of  a  FLOATCALC$  function  can  be  formatted  using  a 
FORMAT$ function.
Examples
 Addition:
  A$ = "234.9"
  B$ = "1001"
  PRINT FLOATCALC$ (A$,"+",B$,5)
  yields:
  1235.90000
 Subtraction:
  A$ = "234.9"
  C% = 2
  PRINT FLOATCALC$ (A$,"-",100.013,C%)
  yields:
  134.88










