Turbo Pascal 7.0 Guide
Operators
The following operators can be used in Pascal. The first four are obvious - the last two are worth a look.
| + | addition |
| - | subtraction |
| * | multiplication |
| / | division |
| DIV | integer division |
| MOD | modulo |
DIV and MOD operate only on integers and return an integer.
7 DIV 3 returns the result 2.
7 MOD 3 returns the result 1. This is the remainder when 7 is divided by 3.

