Skip to content

title: "mod" description: TRSE built-in method (from IDE help)


mod

Systems: M68000
Parameters: i,i


Returns the modulo of parameter 1 with parameter 2.

Examples:

i:=mod(i+1,10); // is is kept between 0 and 9

k:=mod(k*2,j); // is is kept between 0 and j