INT
function INT(arg1: number = null): number | string | boolean
Description
Rounds a number down to the nearest integer.
Parameters
- arg1
number
null Is the real number you want to round down to an integer.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.INT(2.3));