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.
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.