FLOOR
function FLOOR(arg1: number = null, arg2: number = null): number | string | boolean
Description
Rounds a number down to the nearest multiple of significance.
Parameters
- arg1
number
null Is the numeric value you want to round.
- arg2
number
null Is the multiple to which you want to round. Number and Significance must either both be positive or both be negative.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.FLOOR(5.786, 0.7));