during the preparation for my thesis, I've come across some strange discrepancies between literature and the information I've been taught.
It comes down to the proper way of discounting cash-flows of a (semi-annual)coupon bond, which has been done during my lectures this way: $$P_{t}\left(\tau\right) = \sum_{i=1}^{n}\frac{C_i}{\left[1+i_{t}\left(t_i\right)\right]^{t_i}} + \frac{F}{\left[1+i_{t}\left(\tau\right)\right]^{\tau}}$$
However, most literature I've read uses slightly different approach: $$P_{t}\left(\tau\right) = \sum_{i=1}^{n}\frac{C_i}{\left[1+\frac{i_{t}\left(t_i\right)}{2}\right]^{2t_i}} + \frac{F}{\left[1+\frac{i_{t}\left(\tau\right)}{2}\right]^{2\tau}}$$
Let's calculate the first payment, after 0.5 years (zero rate is 5%): $$\frac{C}{\left(1+0.05\right)^{0.5}}\neq \frac{C}{\left(1+0.025\right)^{1}} $$
My question is, which method is correct? Is it the "Semmi-annual discounting of semmi-annual coupons" or "annual discounting"? Or are those two just different conventions?
Thanks for answer