INT
Rounds a number down to the nearest integer.
Syntax
expression.INT(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The real number to round down to an integer. |
Returns
number
Example
This example shows how to round a number down to the nearest integer.
- Code
- Result
// How to round a number down to the nearest integer.
// Use a function to round down a number.
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.INT(2.3));