TBILLPRICE
Returns the price per $100 face value for a Treasury bill.
Syntax
expression.TBILLPRICE(arg1, arg2, arg3);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The settlement date of the Treasury bill, expressed as a serial date number. | |
arg2 | Required | ApiRange | ApiName | number | The maturity date of the Treasury bill, expressed as a serial date number. | |
arg3 | Required | ApiRange | ApiName | number | The discount rate of the Treasury bill. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.TBILLPRICE("1/1/2018", "1/1/2019", "3.00%"));