傳回一或多個整數的最大公因數。
使用範本
GCD(A2:A5)
GCD(24,96,A4)
語法
GCD(value1, [value2, ...])
值_1- The first value or range whose factors to consider in a calculation to find the greatest common divisor.值_2- [ OPTIONAL ] - Additional values or ranges whose factors to consider to find the greatest common divisor.
附註
- Any input with a decimal part provided to
GCDwill be silently truncated.
另請參閱
LCM: 傳回一或多個整數的最小公倍數。