MROUND
function MROUND(arg1: any = null, arg2: any = null): number | string | boolean
Description
Returns a number rounded to the desired multiple.
Parameters
- arg1
any
null Is the value to round.
- arg2
any
null Is the multiple to which you want to round number.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.MROUND(14.35, 0.4));