GCD

Function

GCD(numbers...)

numbers

Use

The GCD() function returns the greatest common denominator of the given numbers.

GCD() works with units, but all of the inputs must have compatible units, and the math will be done using the units of the first input.

If the inputs are not integers, anything after the decimal will be truncated.

Examples
  • GCD(14, 21)  = 7
  • GCD(14.9, 21.2)  = 7
  • GCD(24 in, 60 in)  = 12 in
  • GCD(24 in, 5 ft)  = 12 in

 

 


GCD is included by default in each file as part of the Math library.

 

See also: