Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016 Microsoft365.com My Office for iPhone

本文將說明 Microsoft Excel 中 PI 函數的公式語法及使用方式。

描述

傳回數字 3.14159265358979,此數學常數 pi 精確到 15 位數。

語法

PI()

PI 函數語法沒有引數。

範例

請在下列表格中複製範例資料,再將之貼到新 Excel 活頁簿中的儲存格 A1。 若要讓公式顯示結果,請選取公式,按 F2,然後再按 Enter。 如有需要,您可以調整欄寬來查看所有資料。

資料

半徑

3

公式

描述

結果

=PI()

傳回 pi。

3.141592654

=PI()/2

傳回 pi 除以 2。

1.570796327

=PI()*(A3^2)

以 A3 中的值為半徑之圓的面積。

28.27433388

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。