Qu

lcm

Builtin index · Core maths

lcm(a, b)

Input: a, b · Output: no output

What it is

Least common multiple of two integers, non-negative (0 if either is 0); same argument shapes as gcd. Errors: a non-integer input, or a result above 2^53, which could not be returned exactly.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
lcm(a, b)
a —Errors: a non-integer input, or a result above 2^53, which could not be returned exactly.
b —not documented yet
not documented yetLeast common multiple of two integers, non-negative (0 if either is 0); same argument shapes as gcd.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.