lcm() Function

Function

lcm( number )

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.

Parameters

Keyword Type Description

number

Decimal Array

The list of non-negative numbers.

Returns

Decimal

Examples

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

Test Input

lcm(5,10,15) returns 30

Open in Github Built: Mon, Oct 18, 2021 (02:58:47 PM)

On This Page

FEEDBACK