Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative.
Name | Type | Description |
arg1 | number | Is any real number. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.SIGN(12)); builder.SaveFile("xlsx", "SIGN.xlsx"); builder.CloseFile();