Ump-code

lcm - least common multiple

lcm( A, B )


lcm calculates least common multiple of the numbers A and B.
A and B must be integers.

lcm is calculated using   A*B / gcd( A, B )

lcm( 6, 4 )   equals 12.
This is used in e.g.   1/6 + 3/4 = 11/12

See also
gcd