Rounds a positive number up and negative number down to the nearest odd integer.
Name | Type | Description |
arg1 | number | Is the value to round. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.ODD(7.675)); builder.SaveFile("xlsx", "ODD.xlsx"); builder.CloseFile();