• Reference Guide

Division Remainder

x mod y
x % y
The operator computes the remainder after integer division of two values of types Int, Int8, Int16, Int64, Byte, Word, Dword, and Qword. The result is of the same type as the parameters.
The two versions (with the mod keyword and with the % sign) are the same. They just reflect custom practices in different programming languages.
An attempt at division by zero produces an error.
Integer division can be performed by the operator div.