- Oct 11, 2000
- 56,336
- 11
- 0
For converting subnet masks, its pretty easy:
I memorize: 128, 192, 224, 240, 248, 252, 254, 255. I know that 240 is in the middle, i.e. has 4 ones. I then add or remove ones to get to the desired number.
However, for converting a random number between 0 and 255, what mental tricks/tips do you use to quickly and mentally convert from decimal to binary and vice versa other than memorizing the 256 permutations?
EDIT: Quick meaning doing the conversion under 10 seconds. 5 seconds would be ideal. And 1-3 seconds being fast.
I memorize: 128, 192, 224, 240, 248, 252, 254, 255. I know that 240 is in the middle, i.e. has 4 ones. I then add or remove ones to get to the desired number.
However, for converting a random number between 0 and 255, what mental tricks/tips do you use to quickly and mentally convert from decimal to binary and vice versa other than memorizing the 256 permutations?
EDIT: Quick meaning doing the conversion under 10 seconds. 5 seconds would be ideal. And 1-3 seconds being fast.