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

usti_papy_ai (routine)

Calculate dollar price, yield to maturity, and accrued interest for a US treasury inflation indexed bond

Introduced in release: 1.3
Component: US Bonds
Purpose: Calculates either dollar price, adjusted dollar price or yield to maturity and accrued interest for a US treasury inflation indexed bond (a regular bond and odd first coupon bond).

Notes: The maturity date used by this routine can be a maturity/redemption date.

The possible given values for this routine are:
 given_flag  1 -> yield given, calculate adjusted price and price
 given_flag  2 -> price given, calculate adjusted price and yield
 given_flag 22 -> adjusted price given, calculate price and yield

Results: All results are calculated using the industry standard rules or generally accepted practices, accurate to as many places as supported by a double precision value and then rounded based on the variables usti_rnd_price_type and usti_round_ai_type. The variable price contains the calculated dollar price. The variable adjusted_price contains the calculated adjusted dollar price. The variable yield contains the calculated yield to redemption. The variable ai contains the accrued interest per 100 of maturity value. The variable adjusted_ai contains the adjusted accrued interest per 100 of maturity value.

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

Last Mod Date: 02/25/1997© 2001 TIPS, Inc.Doc Version: 5.0