GCD

傳回一或多個整數的最大公因數。

使用範本

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 GCD will be silently truncated.

另請參閱

LCM: 傳回一或多個整數的最小公倍數。

範例

true
造訪學習中心

您有在公司或學校使用 Google 文件等 Google 產品嗎?快來試試實用的秘訣、教學課程和範本,瞭解如何在不安裝 Office 的情況下處理 Office 檔案、建立動態專案計劃和小組日曆、自動整理收件匣及進行其他作業。

搜尋
清除搜尋內容
關閉搜尋
主選單
3345440160386289568
true
搜尋說明中心
true
true
true
true
true
35
false
false