If you continue browsing this website, you agree to our policies:

x
Completion requirements

This article demonstrates one method for converting from decimal to binary. This conversion is often used as a first step in converting from decimal to any other representation.

This is a quick method to convert a decimal number into a binary number.

The binary number is constructed from right to left.

- If the decimal number is even, write a 0. If it's odd, write a 1.
- Divide the number in two and round down.
- Again, if the decimal number is even, write a 0. If it's odd, write a 1.
- Keep dividing the number until you get to 1.

Convert 99 to binary:

- 99 is odd, so start with: 1
- Divide 99 in 2 (49.5) and round down. 49 is odd, so add a 1 on the left: 11.
- Divide 49 in 2 (24.5) and round down. 24 is even, so add a 0 on the left: 011.
- Divide 24 in 2 (12). 12 is even, so add another 0 on the left: 0011.
- Divide 12 in 2 (6). 6 is even, so add another 0 on the left: 00011.
- Divide 6 in 2 (3). 3 is odd, so add a 1 on the left: 100011.
- Divide 3 in 2 (1.5) and round down. 1 is odd, so add a 1 on the left: 1100011.

99 is 1100011 in binary.

Since this is meant to be done in one's head, maybe the ones and zeros could be kept track of with finger positions. Keep fingers by sides or on the table in front of you, slightly off the surface. Since it's calculated from right to left, the first binary digit would be represented by your right pinky and each additional digit would move to the left. If it's a 1, put your fingertip down. If it's a 0, put your finger down, but curl the finger.

Source: Art of Memory, https://artofmemory.com/wiki/How_to_Convert_Decimal_Numbers_to_Binary

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.

Last modified: Thursday, July 23, 2020, 5:30 PM