Forum Discussion
Altera_Forum
Honored Contributor
10 years agoWhat is the best Floating number method?
Hello friends... I want to know what is the efficient code to implement this equation : 1/4 ( x+y) + 1/2 However, inputs are integers , and the output will be also rounded to integer. Bu...
Altera_Forum
Honored Contributor
10 years agoPS: (x+y)/4 + 1/2 is identical to the equation (x+y + 2) /4. divides by 2^n are just a bit shift.