Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
usbl_pydbey

usbl_pydbey (routine)

Calculate dollar price, discount rate, and yields for a US treasury bill

Introduced in release: 1.2
Component: US Bonds
Purpose: Given one of the following five inputs of; dollar price, discount rate, money market yield, bond equivalent yield, and coupon equivalent yield and an indicator or how the days in the year should be calculated it calculates the remaining four for a US treasury bill.

Special Considerations: The variable ce_yield (coupon equivalent yield) is what the street currently refers to as bond equivalent yield.

This routine differs from the disc_pyd routine in that it allows you to indicate the method by which the days in a year are calculated for the bond equivalent yield and coupon equivalent yield.

Results: All results are calculated using the industry standard rules or generally accepted practices. The variables price, discount, yield, be_yield, and ce_yield contain the following results accurate to as many places as supported by a double precision value: dollar price, discount rate, money market yield, bond equivalent yield, and coupon equivalent yield.

Error Conditions: Returned values should be ignored for a non-zero status. See Errors.

Last Mod Date: 07/24/1996© 2001 TIPS, Inc.Doc Version: 5.0