4 ms·
um... I would have written this same article with the exact opposite slant, Algos in Plain English – Mult, Div, and Mod make for Efficient Division The "binar
by fsckboy 4y ago
um... I would have written this same article with the exact opposite slant,
Algos in Plain English – Mult, Div, and Mod make for Efficient Division
The "binary intuition" is that "what you already know from grade school about multiplying and dividing numbers the long way on paper, by lining up and shifting columns of numbers, is even easier in binary because shifting is multiplication and binary only has a 1 or a 0 in every place.
I just think it's a little wrong to say "we're not mulitplying" when we are. And when you use Mult, Div, and Mod operators, that's what they do.
- foxes 4y agoPerpetuating some programmer mystique that binary operators are somehow different when really they are the same algebraic operations but mod 2.