Operators/ Operations [ HP ALLBASE/BRW Reference Manual ] MPE/iX 5.0 Documentation
HP ALLBASE/BRW Reference Manual
Operators/ Operations
The term operator is used in the normal mathematical sense, that is, an
operator is a mathematical or logical symbol that specifies an operation
to be performed on an argument or arguments. For instance, in the
example below:
PRICE * 10
The asterisk (*) is an operator that tells HP ALLBASE/BRW to multiply the
PRICE by 10.
Operations which you can use with HP ALLBASE/BRW can affect all number
types (Integer, Real, and Numeric), real numbers only, strings, dates,
and times. You can use IF THEN ELSE constructions, Boolean operations
(conditions), list operations (selecting from a list of values), and
aggregate (array) operations.
The description of these operators and their precedence in calculations
is shown in the following table:
Operators Table
------------------------------------------------------------------------------------------
| |
| Precedence Operator Description |
| |
------------------------------------------------------------------------------------------
| |
| 1 ( nnn) Anything in parenthesis |
| |
| 2 ** Exponentiation |
| |
| 3 * , / , MOD Multiplication, division, or modulo |
| |
| 4 + , - , & Addition or subtraction |
| |
| 5 = , <> , <= , > , >= , IN Comparison operators |
| , MATCHES , SATISFIES , |
| OF |
| |
| 6 NOT Boolean operator |
| |
| 7 AND Boolean operator |
| |
| 8 OR Boolean operator |
| |
------------------------------------------------------------------------------------------
Related Sections
* Condition/Boolean Operations
* IF THEN ELSE Operations
* Numbers
* Types
MPE/iX 5.0 Documentation