Description:
Return the least common multiple.
Syntax:
lcm(xi,…)
lcm(A)
Note:
The function gets the least common multiple of the numeric members of x1, x2,…. If there is any member that is equal to or less than 0, the function returns the false value 0
Parameter:
A |
A sequence |
xi |
An expression, which will be ignored if its value is not a number |
Return value:
The least common multiple
Example:
lcm(5,2) |
10 |
lcm(4,10,8,9) |
360 |
lcm(-10,2,15) |
Return 0, which represents an error, since there is a member whose value is less than 0 |
lcm(10,15,20,null) |
60; ignore the non-numerical member |