上一頁 下一頁 首頁 列印 搜尋
Windows SharePoint Services 3.0 說明及使用方法 >  公式及函數 >  數學與三角函數
SIGN 函數
SIGN 函數

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

語法

SIGN(number)

Number  為任意實數。

範例

公式 說明 (結果)
=SIGN(10) 正數的代碼 (1)
=SIGN(4-4) 零的代碼 (0)
=SIGN(-0.00001) 負數的代碼 (-1)