Previous: 2.2.8. Expressions To the Table of Contents Next: 2.2.8.2. Boolean Operators
2.2.8. Expressions Table of Contents 2.2.8.2. Boolean Operators

- 2.2.8.1. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.8. Expressions
2.2.8.1. Arithmetic Operators


2.2.8.1. Arithmetic 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.


Previous: 2.2.8. Expressions To the Table of Contents Next: 2.2.8.2. Boolean Operators
2.2.8. Expressions Table of Contents 2.2.8.2. Boolean Operators

- 2.2.8.1. -