Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web

Excel 中的 ROUND 函數會將數位四捨五入至指定的位數。 

語法:=ROUND (number, num_digits)

  • 如果 num_digits 大於 0,該數位會四捨五入至指定的小數位數。

  • 如果 num_digits 等於 0,則將數字四捨五入到最接近的整數。

  • 如果 num_digits 小於 0,則將數字四捨五入到小數點左邊的指定位數。

範例   :

=ROUND (2.15,1) 結果為 2.2

=ROUND (2.149,1) 結果為 2.1

=ROUND (-1.475,2) 結果 -1.48

=ROUND (21.5,-1) 結果為 20

提示: 如需有關四捨五入函數的詳細資訊,請參閱 ROUND 函數

Need more help?

Want more options?

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