Least_common_multiple
- 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Least_common_multiple
- Updated on 27 May 2022
- 1 Minute to read
- DarkLight
- PDF
Article Summary
Given a list of numbers, calculates the least common multiple for them.
Function signature
LEAST_COMMON_MULTIPLE(list: Array) => Number
Parameter | Description |
---|---|
List | List of numeric values |
Examples
Formula | Return value |
---|---|
LEAST_COMMON_MULTIPLE([10, 100, 1000]) | 1000 |
LEAST_COMMON_MULTIPLE([14, 21, 42]) | 42 |
LEAST_COMMON_MULTIPLE([12, 9, 15]) | 180 |
Was this article helpful?