Numbers & math
Scalar
gcd()
Computes the greatest common divisor of x and y
Alias of greatest_common_divisor()
Arguments & returns
2 overloadsgcd(x, y)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
greatest_common_divisor(42, 57);