跳到主要内容

TBILLYIELD

Returns the yield for a Treasury bill.

Syntax

expression.TBILLYIELD(arg1, arg2, arg3);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe settlement date of the Treasury bill, expressed as a serial date number.
arg2RequiredApiRange | ApiName | numberThe maturity date of the Treasury bill, expressed as a serial date number.
arg3RequiredApiRange | ApiName | numberThe purchase price of the Treasury bill, per $100 par value.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.TBILLYIELD("2/15/2018", "6/1/2018", 99.5));