Purpose:
Calculates either dollar price or yield to maturity and accrued interest for a regular bond or odd first coupon bond (cum dividend only) which follows the ISMA rules.
Special Considerations:
This routine differs from the generic Bond price/yield in that it uses compound interest methodology with 1 period or less remaining to redemption, while the generic routine uses simple interest methodology. This is the stated ISMA method, however, there are some Euro bonds which do use the simple interest method. In this case, you should call the generic bond price/yield routine and specify the ISMA/360 calendar.
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. 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.