Mod Operator
Returns the integer remainder of a division.
Синтакса
Резултат = израз MOD израз2
Врати вредност:
Цел број
Параметри:
Result: Any numeric variable that contains the result of the MOD operation.
Expression1, Expression2: Any numeric expressions that you want to divide.
Пример
Sub ExampleMod
печати 10 mod 2.5 REM врати 0
печати 10 / 2.5 REM врати 4
печати 10 mod 5 REM врати 0
печати 10 / 5 REM врати 2
печати 5 mod 10 REM врати 5
печати 5 / 10 REM врати 0.5
End Sub