Returns the least common multiple of the specified non-negative number(s), which is the smallest number that is a multiple of all the given numbers.

**lcm**( *number*, … )

*number*: (Decimal Array) The list of non-negative numbers.

Decimal

You can experiment with this function in the test box below.

Test Input

`lcm(5,10,15)`

returns `30`

Open in Github

On This Page