Calculate bond dollar price with one or less period to redemption
Introduced in release: 1.0 Component: Generic Purpose:
Calculates the dollar price for a regular bond or odd first coupon bond that has less than or exactly one period remaining to maturity.
Alternatives:
This routine requires inputs normally provided by other interim routines. The bond_py_ai routine uses a coupon rate and relevant dates in computing a price. bond_py_ai is also more inclusive in that it internally determines the number of remaining periods to maturity and selects the appropriate pricing algorithm (less than or equal to one period or greater than one period).
Notes:
The maturity date used by this routine can be a maturity/redemption date.
Results:
The routine returns the calculated dollar price to redemption 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.