QuantLib
QuantLib copied to clipboard
inflationYearFraction in ZeroCouponInflationSwap
Currently ZeroCouponInflationSwap uses inflationYearFraction to compute year fraction for fixed leg's accrual. This makes some adjustments to dates and is also based on dates of the fixings. Is there some reference for this?
If I'm reading the opengamma doc (page 3) correctly, this should just be the number of years between startDate and maturity. Also, checking in Bloomberg, the number of years is rounded up to an integer.