GLBasic User Manual

Main sections

MOD()

a% = MOD(b%, c%)



Returns the integer reminder from a division operation.

Sample:
// MOD
PRINT MOD(5,3), 0, 100 // 5/3=1 with reminder (MOD)=2
SHOWSCREEN
MOUSEWAIT


Output:
2

See also...