Intermec PM4i Fingerprint Developer's Guide (old) - Page 25
About Operators, Using Arithmetic Operators, Using Relational Operators
View all Intermec PM4i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 25 highlights
Chapter 2 - Understanding Fingerprint Syntax • String expressions (sometimes expressed as ) are carriers of alphanumeric text (string constants and string variables). • Numeric expressions (sometimes expressed as ) contain numeric values, numeric variables and operators only (numeric constants and numeric variables). About Operators There are three main types of operators: arithmetic, relational, and logical. Using Arithmetic Operators These operators perform calculations as described in the next table. Arithmetic Operators Operator + * \ MOD ^ ( ) Description Addition Subtraction Multiplication Integer division Modulo arithmetic. Results in an integer value equaling the remainder of an interger division. Exponent Specifies the order of calculation. Example 2+2=4 4-1=3 2*3=6 6\2=3 5MOD2=1 5^2=25 7+5^2\8 = 10 (7+5^2)\8 = 4 Using Relational Operators These operators check the difference between numeric values as described in the next table. Relational Operators Operator Description Less than Less than or equal to Not equal to Equal to. Also used as an assignment operator. Greater than Greater than or equal to Relational operators return: -1 if relation is TRUE. 0 if relation is FALSE. The following rules apply: • Arithmetic operations are evaluated before relational operations. • Letters are greater than digits. Intermec Fingerprint Developer's Guide 9