Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Mod - operator of language VBScript

Description:
Used to divide two numbers and return only the remainder ("modulo" operator)
Syntax:
result = number1 Mod number2
Note:
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result.
Example:
Dim x
x = 12 Mod 10 'x equals 2 (12=1*10+2)
x = 19 Mod 6.7 'x equals 5 (19=2*7+5)
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice