Rounds a positive number up and negative number down to the nearest even 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.EVEN(15.67)); builder.SaveFile("xlsx", "EVEN.xlsx"); builder.CloseFile();