TRY NEW VERSION

ECMA_CEILING

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

Rounds the number up to the nearest multiple of significance.

Parameters:

Name Type Description
arg1. number
arg2. number

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ECMA_CEILING(1.567, 0.1));
builder.SaveFile("xlsx", "ECMA_CEILING.xlsx");
builder.CloseFile();

Resulting document