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

Last updated