Sfairadora

  • Reference Guide

Integer Division

x div y
The operator performs integer division of two numbers of the types Int, Int8, Int16, Int64, Byte, Word, Dword, and Qword. The result is of the same type as the parameters. The result is the quotient rounded down to the nearest whole number towards zero.
An attempt at division by zero produces an error.
The remainder after division can be acquired by the operator mod.