Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
cngb_py_ol

cngb_py_ol (routine)

Calculate dollar price, yield to maturity, and accrued interest for Canadian government odd last securities

Introduced in release: 1.25
Component: Non-US (developed mkts)
Purpose: Calculates either the dollar price or yield to maturity and the accrued interest for a Canadian government regular bond, odd first coupon bond or odd first and last coupon bond.

Alternatives: Use cngb_py_ai if there is no odd last period and calculation performance is an issue

Notes: This routine internally determines the number of remaining periods to maturity/redemption and selects the appropriate formula (less than or equal to one period or greater than one period) to use for price/yield calculations.

Results: All results are calculated using the industry standard or generally accepted practices, 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. 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.

Supercedes: cndn_py_ai

Last Mod Date: 01/21/1997© 2001 TIPS, Inc.Doc Version: 5.0