Page 1 of 1
binary arithmetic habits
Posted: Mon Dec 26, 2011 4:17 pm
by VolTeK
I dont know if im the only one, but at the moment im trying to get into the habbit of dividing binary, in a more binary way.
For some reason, i convert it to decimal in my head, and do the math in decimal, then convert the result to binary.
I know this is cheating, but does anyone else do this?
Re: binary arithmetic habits
Posted: Mon Dec 26, 2011 4:52 pm
by Combuster
For manual calculations, it's always long division whenever the arguments happen not to be part of your brain's lookup table. It works the same for decimal, binary, octal, and whatever number range you want to perform - it just becomes simpler for smaller digits and is really straightforward in the binary case. It also works for decimal numbers if you know the caveats.
Plus, if you have one of those unlucky RISC architectures where there's no native multiply or divide, long division is exactly the algorithm you will be using to compute the answer.
If you lack pen and paper, converting to decimal and back does seem to be much more memory efficient and less error-prone for most people, as the brain can only have so many symbols live. dealing with 5-digit decimals easily beats dealing with the relatively huge 16 digit binary strings you need to represent a similar range of numbers in those cases.
Re: binary arithmetic habits
Posted: Mon Dec 26, 2011 5:31 pm
by VolTeK
Combuster wrote:It works the same for decimal, binary, octal, and whatever number range you want to perform - it just becomes simpler for smaller digits and is really straightforward in the binary case. It also works for decimal numbers if you know the caveats.
Combuster wrote: converting to decimal and back does seem to be much more memory efficient and less error-prone for most people
Thanks
Re: binary arithmetic habits
Posted: Mon Dec 26, 2011 9:17 pm
by Love4Boobies
I don't find this a useful skill to develop. I never find myself in the need to perform fast binary divisions and even if I ever did, I'd probably be in front of a computer.
Re: binary arithmetic habits
Posted: Mon Dec 26, 2011 10:05 pm
by VolTeK
Love4Boobies wrote:I don't find this a useful skill to develop. I never find myself in the need to perform fast binary divisions and even if I ever did, I'd probably be in front of a computer.
Good point.
Re: binary arithmetic habits
Posted: Tue Dec 27, 2011 12:45 am
by CrypticalCode0
Intel used to have a great barrel shift which was used to divide and multiply....
Re: binary arithmetic habits
Posted: Tue Dec 27, 2011 12:56 am
by Brynet-Inc