lcm(p1)
public
Returns the least common multiple (always positive). 0.lcm(x) and x.lcm(0) return zero.
For example:
2.lcm(2)
3.lcm(-7)
((1<<31)-1).lcm((1<<61)-1)
Show source
VALUE
rb_lcm(VALUE self, VALUE other)
{
other = nurat_int_value(other);
return f_lcm(self, other);
}