# LCM

## Content

This function returns the least common multiple of two numbers.

## Syntax

`LCM(number1, [number2], ...)`

## Arguments

<span data-teams="true" style="box-sizing: content-box; margin: 0px; padding: 0px; transition: filter 0.5s ease-in-out; line-height: 25.6px;">This function has these arguments:</span>

| <span data-teams="true" style="box-sizing: content-box; margin: 0px; padding: 0px; transition: filter 0.5s ease-in-out; line-height: 25.6px;">Argument</span> | <span data-teams="true" style="box-sizing: content-box; margin: 0px; padding: 0px; transition: filter 0.5s ease-in-out; line-height: 25.6px;">Description</span> |
| -------- | ----------- |
| *<span data-teams="true" style="box-sizing: content-box; margin: 0px; padding: 0px; transition: filter 0.5s ease-in-out; line-height: 25.6px;">number1, number2, ...</span>* | Number1 is required, subsequent numbers are optional. 1 to 255 values for which you want the least common multiple. If value is not an integer, it is truncated. |

## Remarks

The least common multiple is the smallest positive integer that is a multiple of all integers given.
Use this function to add fractions with different denominators by calculating the least common multiple of both denominators first.

## Examples

`LCM(B12,C22)`
`LCM(R12C2,R22C3)`
`LCM(300,500)` gives the result 1500
`LCM(12.3,16.99)` gives the result 48