MOD
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns the remainder (an integer value) after dividing the first number by the second number.
Syntax: MOD (
number1
,
number2
)
number1
for which you want to find the remainder after the division is performed.
number2
is the number by which you want to divide (divisor)
If a number containing decimals is provided, then value of that number is applied to it and then the modulo is calculated.
Example: MOD ( 8 , 3 )
Output: 2
Example: MOD ( -8 , 3 )
Output: -2
Example: MOD ( 10.5 , 2.1 )
is computed as mod (10, 2)
Output: 0