lcm()

Computes the least common multiple of x and y

Alias of least_common_multiple()

Arguments & returns

2 overloads

lcm(x, y)

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

Example

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

Engine example · Run to view results.

Catalog examples

SELECT
  least_common_multiple(42, 57);