DOLLARFR
Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.
Syntax
expression.DOLLARFR(arg1, arg2);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | A decimal number. | |
arg2 | Required | ApiRange | ApiName | number | The integer to use in the denominator of a fraction. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.DOLLARFR(1.1875, 16));