Syntax
=GCD(number1, [number2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
number1 | Required | The first number or range |
number2 | Optional | More numbers or ranges |
How to use GCD
GCD takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =GCD( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=GCD(24, 36)Result =GCD(5, 2)Result =GCD(5, 0)Result Related math functions
- FACTDOUBLEReturns the double factorial of a number (every other integer multiplied down to 1 or 2).
- FLOORRounds a number down to the nearest multiple of significance.
- FLOOR.MATHRounds a number down to the nearest integer or multiple; mode chooses the direction for negative numbers.
- FLOOR.PRECISERounds a number down to the nearest multiple, whatever the sign of the number or significance.
- INTRounds a number down to the nearest integer.
- ISO.CEILINGRounds a number up to the nearest multiple, whatever the sign of the number or significance.
- LCMReturns the least common multiple of whole numbers.
- LNReturns the natural logarithm of a number.
- LOGReturns the logarithm of a number to the base you choose (10 when left out).