- 2.2.8.1 -
TMT Pascal Language Description
Pascal Language Structure
ExpressionsArithmetic Operators
Standard arithmetic operators listed below.
Operator | Operation |
@ | Pointer formation |
+ | Unary sign identity |
- | Unary sign negation |
+ | Addition |
- | Subtraction |
* | Multiplication |
Div | Integer division |
/ | Real division |
Mod | Integer remainder |
And | Logical AND |
Xor | Logical XOR |
Not | Logical NOT |
Or | Logical OR |
Shl | Shift bits left |
Shr | Shift bits right |
During binary operations both operands must be of compatible type.
If the operands are of compatible type then the operation results in the
same type of the operand. If the types are different then the result is
the larger type.
For integer operations, operands are converted to Longint and results are
of the same type as the destination type. Longint or 32 bit operations
are faster on the 80386 and 80486.
During real operations, operands are converted to extended type and
results are of the same type as the destination.
|
|
|
Expressions |
Table of Content |
Boolean Operators |
- 2.2.8.1 -