Physics I / Data representation and basic types
Practice question · Put in order

Order the steps to convert the decimal number 13 to binary.

Hints
  1. Divide repeatedly by two and keep every remainder.
  2. The remainders come out in reverse order to how they are read.
Show the answer
  1. Divide 13 by 2: quotient 6, remainder 1
  2. Divide 6 by 2: quotient 3, remainder 0
  3. Divide 3 by 2: quotient 1, remainder 1
  4. Divide 1 by 2: quotient 0, remainder 1 → read remainders bottom-up: 1101
Why

Repeated division by 2, reading remainders bottom-up, gives 13₁₀ = 1101₂.

Read the lesson: Data representation and basic types →

Practise Data representation and basic types

The app has 8 more questions on this lesson, and keeps your place in the course. Physics I is free to start.

More questions on Data representation and basic types