QUOTIENT
Returns the integer portion of a division.
Syntax
expression.QUOTIENT(arg1, arg2);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The dividend, a numeric value. | |
| arg2 | Required | ApiRange | ApiName | number | The divisor, a numeric value. |
Returns
number
Example
This example shows how to return the integer portion of a division.
- Code
- Result
// How to get the integer part from the result of division.
// Use a function to integer part from division.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.QUOTIENT(1698, 30));