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

uscb_py_ai (routine)

Calculate price or yield and accrued interest for US corporate bonds

Introduced in release: 1.0
Component: US Bonds
Purpose: Calculates either dollar price or yield to maturity and accrued interest for US corporate bond (a regular bond, odd first coupon bond, odd last coupon bond, and odd first and last coupon bond).

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. The variable calculated contains the calculated dollar price or yield to redemption. 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.

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

Last Mod Date: 10/20/1998© 2001 TIPS, Inc.Doc Version: 5.0