Navigation:  Reference > Functions >

LCM function

Print this Topic Previous pageReturn to chapter overviewNext page

Returns the least common multiple of two integers. The least common multiple is the smallest positive integer that is a multiple of both arguments. If either argument is not an integer, it is truncated.

LCM(a,b) is calculated as (a*b)/GCD(a,b).

LCM(5,2)=10

LCM(24,36)=72

____________________________

See also:

GCD

Functions

 


Page url: https://www.dplot.com/help/index.htm?lcm.htm