lcm

fntypeof(Unqual!(T).init % Unqual!(U).init) lcm(T, U)(T a, U b) if (isIntegral!T && isIntegral!U)

Computes the least common multiple of a and b. Arguments are the same as gcd .

Returns

The least common multiple of the given arguments.
fnauto lcm(T)(T a, T b) if (!isIntegral!T && is(typeof(T.init % T.init)) && is(typeof(T.init == 0 || T.init > 0)))

ditto