MOD, %
¶
Calculates the modulu (remainder) of x
divided by y
.
This function can be also be called with an infix operator, x % y
.
Syntax¶
modulu ::= MOD( expr1, expr2 )
| expr1 % expr2
Arguments¶
Parameter |
Description |
---|---|
|
Integer expression (dividend) |
|
Integer expression (divisor) |
Returns¶
Always returns a integer result.
Notes¶
If the input value is NULL, the result is NULL.
Both inputs are expected to be integers