Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  241
Chapter 2 Program Instructions
SGN
Field of Application
 Function returning the sign (positive, zero, or negative) of a specifi ed 
numeric expression.
Syntax SGN(<nexp>)
<nexp> is  the  numeric  expression  from  which  the  sign  will  be 
returned.
Remarks
 The sign will be returned in this form:
 SGN(<nexp>) = -1    (negative)
 SGN(<nexp>) = 0    (zero)
 SGN(<nexp>) = 1    (positive)
Examples
 Positive numeric expression:
  10   A%=(5+5)
  20   PRINT SGN(A%)
  RUN
  yields:
  1
 Negative numeric expression:
  10   A%=(5-10)
  20   PRINT SGN(A%)
  RUN
  yields:
  -1
 Zero numeric expression:
  10   A%=(5-5)
  20   PRINT SGN(A%)
  RUN
  yields:
  0










