Intermec PM43/PM43c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43 - Page 21
About Operators, Using Arithmetic Operators, Using Relational Operators
View all Intermec PM43/PM43c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 21 highlights
Chapter 2 - Understanding Fingerprint Syntax An expression can be either a constant or a variable. There are two types of expressions: • 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 (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 Example Addition Subtraction Multiplication Integer division 2+2=4 4-1=3 2*3=6 6\2=3 Modulo arithmetic. Results in an integer value equaling the remainder of an interger division. Exponent Specifies the order of calculation. 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. Fingerprint Developer's Guide 9