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