1. Write out the powers of 2 from 20 = 1 (in right to left order, ie ... 16 8 4 2 1) until you get a power greater than or equal to the number you wish to convert.
2. Put a one (1) under the highest power of 2 that is less than or equal to the number
3. Subtract that power from the number.
4. If the result of the subtraction is not zero, find the next power of 2 not greater than the result of the subtraction and repeat from step 3.
5. Put a zero (0) under all powers of 2 which have nothing under them.
6. The result (under the powers of 2) is the number in base 2.
Example to convert 948 base 10 to base 2:
Write out the powers of 2 until greater than or equal to 948:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
First power less than or equal to 958 is 512:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1.......................................................................
948 - 512 = 436
Next power not greater than 436 is 256:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1..............................................................
436 - 256 = 180 → 128:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1.........1.................................................
180 - 128 = 52 → 32:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1.........1...............1...............................
52 - 32 = 20 → 16
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1.........1...............1......1.......................
20 - 16 = 4 → 4:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1.........1..............1......1..........1...........
4 - 4 = 0, so fill in the zeros:
Powers: 1024...512...256...128...64...32...16...8...4...2...1
Result:.....................1........1.........1.......0.....1......1....0...1...0...0
Thus 95810 = 11 1011 01002
(If the powers are written out in ascending order (from left to right), reverse the final result.)
Chat with our AI personalities
Without knowing what base the number is written in it cannot be converted. Generally numbers in use are written in base 10
Convert the base 10 numeral to a numeral in the base indicated. 503 to base 5
Assuming the original number is written in base 10, there is no need to convert this to base 10 as it is already there. The hexadecimal number represented as 601 in base 16 is represented in decimal as 1537.
If that's hexadecimal, it's 43981 base 10.
Decimal number 310 is equivalent to (1234) to the base 6