Promotic

Mod - operator of language VBScript

Description:
Divide two numbers and return 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:
VBScriptSelect and copy to clipboard

Dim x
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)
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.