TRY NEW VERSION

CEILING

CEILING(arg1, arg2) → { number | string | boolean }

Rounds a number up, to the nearest multiple of significance.

Parameters:

Name Type Description
arg1 number

Is the value you want to round.

arg2 number

Is the multiple to which you want 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.CEILING(1.23, 0.1));
builder.SaveFile("xlsx", "CEILING.xlsx");
builder.CloseFile();

Resulting document