DLiteScript

math.mod

Returns the remainder of division.

Examples

1
2
printf("%g\n", math.mod(10, 3)) // 1
printf("%g\n", math.mod(15, 4)) // 3