How to manually convert a number from decimal into binary?

Decimal and binary are two positional systems which essentially means that we write the number as a sum of digits multiplied by powers of a base. For instance, 142 actually means 10^2 * 1 + 10^1 * 4 + 10^0 * 2. The same is the case with binary, the only difference being the base is 2, not 10.

The quickest way to convert a number from decimal to binary by hand is to write down some powers of two, so 1, 2, 4, 8, 16... Then we look at our number and check which biggest power of two we could substract from it and write down a one, so if we were converting 19 base 10 into binary, we'd subtract 16 and write down just '1'. Then, for each smaller power of two (8, 4, 2, 1) if it is bigger than what is left of the number we are converting we subtract and write down another '1', otherwise we write down 0.

BC
Answered by Brian C. Computing tutor

2273 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is the decimal equivalent of the following sequence of bits, which represents an unsigned binary integer: 1101001. What is the decimal equivalent if the sequence in bits encodes a two’s complement binary integer.


why is the Harvard architecture is sometimes used in preference to the von Neumann architecture and give examples of each system


Simplify the following Boolean expression: ¬(AvB) v ¬(CvD) v ¬A^(BvC) v (¬A^A)


Image a graph. In which instances is it more appropriate to use an adjacency list instead of an adjacency matrix?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning