method

lcm

v1_8_6_287 - Show latest stable - Class: Integer
lcm(other)
public

Returns the lowest common multiple (LCM) of the two arguments (self and other).

Examples:

  6.lcm 7        # -> 42
  6.lcm 9        # -> 18