MOD

Top  Previous  Next

Action

Returns the remainder of a division.

 

 

Syntax

ret = var1 MOD var2

 

 

Remarks

Ret

The variable that receives the remainder.

var1

The variable to divide.

var2

The divisor.

 

 

Example

a = 10 MOD 3        'divide 10 through 3

PRINT a                'print remainder (1)