mod (Math)

Returns the remainder after division of the first of the given values by the second.

Arguments

dividend
is a natural or integer number.
divisor
must be of the same type as
dividend
.

Return values

remainder
after division as a natural or integer number, according to the arguments type.

Example

8 3 mod print
Output:
2