Learn in your language
Skip to content
IGCSE · Cambridge (CIE) · 0478

Unsigned binary representation

Use place values to convert numbers and preserve a requested bit width.

What you will learn

  • Convert a non-negative denary integer to binary.
  • Explain leading zeros and the range of an unsigned byte.

Binary uses powers of two

Each binary digit is 0 or 1. Starting on the right, place values are 1,2,4,8,16,32,64,128. A one includes that place value and a zero excludes it. Add the included values to convert binary to denary.

For conversion in the other direction, work from the largest place value downward. If that value fits into the remaining amount, write one and subtract it; otherwise write zero.

Value and format both matter

Leading zeros do not change an unsigned binary value, but they do affect the written width. An instruction requesting eight bits requires eight digits. The largest unsigned eight-bit value is 255 and the smallest is zero.

Signed representations use a different interpretation. Do not apply an unsigned conversion rule to two's-complement numbers without considering the sign bit.

Unsigned n-bit range: 0 to 2ⁿ−1
Put the idea to work

Worked example

Convert denary 53 into unsigned eight-bit binary.

Show the worked solution
  1. 53 contains 32, leaving 21; include 16, leaving 5.
  2. Include 4 and 1, giving 32+16+4+1.
  3. For places 128,64,32,16,8,4,2,1, write 0,0,1,1,0,1,0,1.

Answer 00110101

Common mistakes

  • A correct value can still have the wrong requested width.
  • Each place is a power of two, not a power of ten.
Recall without your notes

What can you explain now?

Convert 00011010 to denary.

Compare with the explanation

26

The set bits represent 16+8+2.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Keep learning Computer Science

Course scope and assessment

165 original lessons map the listed objectives across all 10 main topics in the 2026–2028 Version 6 syllabus, with worked explanations and guided, independent and transfer practice. This is mapped teaching coverage, not proof of full exam readiness. Three earlier starter lessons remain available but are not counted as syllabus-mapped teaching. Practical programming experience in an executable browser workspace, full timed-paper practice, human subject-teacher review and the separate 2029–2031 syllabus remain outstanding. Practice is self-checked and does not award an official Cambridge grade.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.