lcm ()
Returns the Least Common Multiple (LCM) of a set of numbers.
Parameters
$numbers
- The numbers for which to calculate the least common multiple.
- Type
ArgList<Number>
Return Value
Number
- The number that is the LCM of the given set of numbers.
Example
@use '@sass-fairy/math';
@debug math.lcm(12, 15, 10, 75);
// 300
@debug math.lcm(12, 15, 52, 75);
// 3900