[]
        
(Showing Draft Content)

GCD

This function returns the greatest common divisor of two numbers.

Syntax

GCD(number1, [number2], ...)

Arguments

This function has these arguments:

Argument

Description

number1, number2, ...

Number1 is required, subsequent numbers are optional. 1 to 255 values. If any value is not an integer, it is truncated.

Remarks

The greatest common divisor is the largest integer that divides both numbers without a remainder.

Examples

GCD(B5,G7)

GCD(R5C2,R7C7)

GCD(3348,972) gives the result 108 

GCD(12.8,16.3) gives the result 4