Turbo Pascal 7.0 Guide

The following operators can be used in Pascal. The first four are obvious - the last two are worth a look.

DIVinteger division

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.