lcm(other)
public
Returns the lowest common multiple (LCM) of the two arguments
(self and other).
Examples:
6.lcm 7
6.lcm 9
# File lib/rational.rb, line 457
def lcm(other)
if self.zero? or other.zero?
0
else
(self.div(self.gcd(other)) * other).abs
end
end