MOD
Format: var = MOD (expr1, expr2)
Supported by: COMX BASIC V1.00, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, RCA BASIC3 V1.1
Similar commands: -
This function (modulo) returns as its value the following equivalent: exprl - (exprl/expr2)*expr2. where each expression is first converted to integer. The function defaults to an integer mode value. For example
PR MOD (10,3)
would result in
1