TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

EVEN

EVEN(arg1) → { number | string | boolean }

Rounds a positive number up and negative number down to the nearest even integer.

Parameters:

Name Type Description
arg1 number

Is the value to round.

Returns:

Type
number | string | boolean

Example

Copy code
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();

Resulting document