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

auct_py_ai (routine)

Calculate treasury security auction formula dollar price, yield to maturity, and accrued interest

Introduced in release: 1.0
Component: US Bonds
Purpose: Calculates either the dollar price or yield to maturity and the accrued interest for Treasury bonds and Treasury notes using the U.S. Treasury auction formulas.

Notes: This routine internally determines the number of remaining periods to maturity/redemption and selects the appropriate formula (less than or equal to one period or greater than one period) to use for price/yield calculations.

Results: All results are calculated using the industry standard or generally accepted practices. The variable calculated contains the calculated dollar price to redemption per 100 of maturity value or yield to redemption as a percent, both accurate to as many places as supported by a double precision value. To round or truncate the result to industry standards see the routine rslt_fix_plc. The variable ai contains the accrued interest per 100 of maturity value accurate to as many places as supported by a double precision value.

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

Last Mod Date: 12/18/1995© 2001 TIPS, Inc.Doc Version: 5.0