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

N_stpd_py_ol (routine)

Multi stepped odd last coupon bond - Price/Yield and Accrued Interest

Introduced in release: 1.0
Component: US Bonds
Purpose: Calculate either a dollar price or yield to maturity and accrued interest for a multiple stepped coupon bond with an odd last coupon period.

Notes: A maximum of 20 conversion dates is accommodated.

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

This routine only works with security_type 1,3,4,5,7 and 8. It does not work with any foreign security types.

Results: All results are calculated using the industry standard or generally accepted practices selected by the parameter security_type, and are accurate to as many places as supported by a double precision value. The variable calculated contains the calculated dollar price to redemption per 100 of maturity value or yield to redemption as a percent. 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: 02/01/1996© 2001 TIPS, Inc.Doc Version: 5.0