ODD
function ODD(arg1: number = null): number | string | boolean
Description
Rounds a positive number up and negative number down to the nearest odd integer.
Parameters
- arg1
number
null Is the value to round.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ODD(7.675));