Added in 4.3

$lcm(N,...)

Returns the least common multiple for the specified list of numbers.

See also $gcd.

Parameters

Parameter Description
N... The number(s) to search.

Example

//echo -ag The least common multiple for 24 and 54 is $lcm(24, 54)