Introduced in release: 1.0 Component: Restricted Purpose:
Calculates the accrued interest for a regular bond or odd first coupon bond.
Special Considerations:
If the security contains an odd last coupon, use the mtrm_ai routine instead of this routine.
Alternatives:
If price and/or yield are required in addition to accrued interest, use the bond_py_ai routine instead of this routine. If price and/or yield, current yield, estimated Macaulay duration, estimated convexity, interest on interest, etc. are required in addition to accrued interest, use the bond_risk routine.
Notes:
In addition to accrued interest, other values are returned by the routine - see outputs in Parameter Definition section.
Results:
The returned value is 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.