Excel - SIGN 函式



說明

SIGN 函式確定數字的符號。函式返回 -

  • 1 如果該數字為正數
  • 0 如果該數字為 0
  • -1 如果該數字為負數

語法

SIGN (number)

引數

引數 說明 必需/可選
數字 任意實數。 必需

備註

如果指定數字不被識別為數字值,SIGN 將返回 #VALUE! 錯誤。

適用性

Excel 2007、Excel 2010、Excel 2013、Excel 2016

示例

SIGN Function
advanced_excel_math_trigonometric_functions.htm
廣告