LCM

The function LCM returns the least common multiple of one or more Numbers.

This function takes a Number or Numbers as input. It returns the least common multiple as a Number output.

Declaration

LCM(first_number, second_number, nth_number, ...) -> least_common_mulitple

Parameters

first_number, second_number, nth_number (type: at least one number)
The numbers to compute the least common multiple for.

Return Values

least_common_multiple (type: number)
The least common multiple.

Examples

The least common multiple of the numbers three and five is fifteen.

LCM(3, 5) -> 15