Added in 4.3

$lcm(N,...)

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

See also $gcd.

Parameters

N... - The numbers to search.

Example

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