Skip to content

Returns the remainder of x divided by y. If y is 0, it returns an error.

func.modulo( <x>, <y> )
func.modulo(9, 2)
┌───────────────────┐
│ func.modulo(9, 2) │
├───────────────────┤
1
└───────────────────┘
MODULO( <x>, <y> )
SELECT MOD(9, 2), MODULO(9, 2);
┌──────────────────────────┐
│ mod(9, 2) │ modulo(9, 2) │
├───────────┼──────────────┤
11
└──────────────────────────┘