Divide two numbers and return the remainder ("modulo" operator).
result = number1 Mod number2
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result.
VBScriptSelect and copy to clipboard
x = 12 Mod 10
' x is 2 (12=1*10+2)
x = 19 Mod 6.9
' x is 5 (19=2*7+5) (the 6.9 value is rounded to 7)