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

disc_pydbey (routine)

Calculate dollar price, discount rate, and yields for discount securities

Introduced in release: 1.0
Component: Generic
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 discount security.

Special Considerations: 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.

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: 04/01/1992© 2001 TIPS, Inc.Doc Version: 5.0