MODULO

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

Analyze Syntax

func.modulo( <x>, <y> )

Analyze Examples

func.modulo(9, 2)

┌───────────────────┐
 func.modulo(9, 2) 
├───────────────────┤
                 1 
└───────────────────┘

SQL Syntax

MODULO( <x>, <y> )

Aliases

SQL Examples

SELECT MOD(9, 2), MODULO(9, 2);

┌──────────────────────────┐
 mod(9, 2)  modulo(9, 2) 
├───────────┼──────────────┤
         1             1 
└──────────────────────────┘
Last modified April 23, 2024 at 12:42 PM EST: updating numerical functions (2a94341)