Mitsubishi Electronics Q173CPU(N) Home Security System User Manual


 
7 - 2
7 OPERATION CONTROL PROGRAMS
(2) Priorities of operators and functions
Operators and functions have the following priorities.
Using parentheses allows an operation sequence to be specified freely.
Priority Item (Operator, Function)
High Calculation within parentheses ((...))
Standard function (SIN, COS, etc.),
Type conversion (USHORT, LONG, etc.)
Bit inversion (~), logical negation (!), sign inversion ( )
Multiplication ( ), division (/), remainder (%)
Addition (+), subtraction ( )
Bit left shift (<<), bit right shift (>>)
Comparison operators: Less than (<), less than or equal to (<=),
more than (>), more than or equal to (>=)
Comparison operators: Equal to (==), not equal to (!=)
Bit logical AND (&)
Bit exclusive OR (^)
Bit logical OR (|)
Logical AND ( )
Logical OR (+)
Low Substitution (=)