Calculate bond dollar price, yield to maturity and accrued interest for UK government index linked bonds (Index-linked Gilts)
Introduced in release: 1.4 Component: Non-US (developed mkts) Purpose:
Calculates either dollar price or yield to maturity and accrued interest for UK government periodic Index-linked Gilts.
Special Considerations:
This routine takes into consideration partial payments in the first period.
This function has as one of its parameters ukgb_convention_flag, a flag which specifies the convention to use in performing the calculation. The flag allows for auto determination or specification of the convention. Please review the documentation of ukgb_convention_flag for details.
Notes:
This routine can optionally perform its calculations considering an input ex-dividend date. To calculate an ex-dividend date use the ukgb_exd routine.
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.