**Public Function LeastCommonMultiple( _
ByVal vX As Variant _
, ByVal vY As Variant _
) As Variant**

**Return the smallest number which is divisible by both arguments vX and vY. **

Also known as LCM.

**Examples:** LeastCommonMultiple(34, 12) = 204
LeastCommonMultiple(45, 67) = 3015
LeastCommonMultiple(34, 4192) = 71264
LeastCommonMultiple(12, 65) = 780
LeastCommonMultiple(12, 64) = 192
LeastCommonMultiple(123456789012345#, 12345678901234#) = 1.52415787532381E+27

**See also:** GreatestCommonDivisor Function
IsPrime Function

**vX:** First of two numbers whose least common multiple is to be calculated. Function returns Null if vX is Null or cannot be fixed up to a number. **vY:** Second of two numbers whose smallest common multiple is to be calculated. Function returns Null if vX is Null or cannot be fixed up to a number.

**Definition:**

Abs(X * Y) / GreatestCommonDivisor(X, Y)

Copyright 1996-1999 Entisoft

Entisoft Tools is a trademark of Entisoft.