SIGN 函數

套用到
SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 企業版 SharePoint Foundation 2010 SharePoint Server 2010 Windows SharePoint Services 3.0

決定數字的正負號。 若為正數傳回 1,若為 0 傳回零 (0),若為負數則傳回 -1。

語法

簽名 (號碼)

數字 是任意實數。

範例

公式 描述 (結果)
=SIGN(10) 正數的符號 (1)
=SIGN(4-4) 零 (0) 號
=SIGN(-0.00001) 負數 (-1的徵兆)