Forum Discussion
Altera_Forum
Honored Contributor
8 years agoIf you want to round to nearest, you should also "add" the highest order fractional bit that you are shifting out. If delta_y is signed, this requires you to subtract delta_y(4). This is because a 1-bit signed number has two possible values, 0 or -1 decimal. So to add 1 if delta_y(4) is '1', you need to subtract.