Altera_Forum
Honored Contributor
15 years agobit shifting arithmetic
Hi there!
I am trying to get my around some binary arithmetic. Basically, I don't want to deal with floating points, so I have a problem that was originally 400 * 0.0615 = 24.6 to this (400*615) >> 4 = 24.6 Except in binary, it doesn't work like this? for instance, 10 -> 1010 100 -> 1100100 I can't shift it over by simply doing 100 >> 1; Please help! Thanks in advance.