Returns the yield of a Treasury bill.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Tbillyield( DateTime settlement, DateTime maturity, double price ) |
Visual Basic (Declaration) |
---|
Public Shared Function Tbillyield ( _ settlement As DateTime, _ maturity As DateTime, _ price As Double _ ) As Double |
Visual C++ |
---|
public: static double Tbillyield( DateTime settlement, DateTime maturity, double price ) |
Parameters
- settlement
- Type: System..::.DateTime
The DateTime settlement date of the Treasury bill.
- maturity
- Type: System..::.DateTime
The DateTime maturity date of the Treasury bill. The maturity cannot be more than a year after the settlement.
- price
- Type: System..::.Double
A double which specifies the Treasury bill's price per $100 face value.
Return Value
A double which specifies the yield for the Treasury bill. This is an annualized rate based on the purchase price of the bills and reflects the actual yield to maturity.
Remarks
It is computed using the following:

