Returns the least common multiple of integers.
Hàm này hoạt động trong Google Sheets giống như trong Excel — cùng cú pháp và đối số.
LCM(number1, [number2], ...)The LCM function calculates the smallest positive integer that is a multiple of all argument numbers. It is commonly used for adding fractions with different denominators or scheduling recurring events.
=LCM(5, 2)Kết quả: 10
The smallest number divisible by both 5 and 2 is 10.
=LCM(4, 6, 8)Kết quả: 24
The smallest number divisible by 4, 6, and 8 is 24.
The LCM function truncates non-integer values to integers.