greatest_common_divisor()

Computes the greatest common divisor of x and y

Arguments & returns

2 overloads

greatest_common_divisor(x, y)

Scalar
Overload link xy Returns
#01 BIGINTBIGINT BIGINT
#02 HUGEINTHUGEINT HUGEINT

Example

greatest_common_divisor example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.