Binary numbers

How Binary Numbers Represent Values

Read positional base-two notation, distinguish representations from values, and understand unsigned and signed bit patterns.

Direct answer

A binary numeral represents a value by summing powers of two at positions containing 1; the same bit pattern can mean something different when a signed, fractional, or encoded interpretation is applied.

What this calculation tells you

Each binary digit has a place value that is a power of two. An unsigned integer uses those places directly; signed systems such as two's complement assign the highest bit a different role within a fixed width.

Binary text, machine storage, and floating-point encodings are related but not interchangeable concepts.

Where it is used

Computing education

Connect bits, place values, and integer ranges.

Digital electronics

Interpret idealised on/off state combinations while recognising hardware adds electrical constraints.

Networking and systems

Read masks, flags, and bounded integer fields in their declared formats.

Data work

Convert representations while preserving width and signedness assumptions.

When this guide helps

  • Converting an unsigned binary integer.
  • Checking the range of an n-bit field.
  • Reading a two's-complement pattern.
  • Distinguishing a displayed numeral from its stored encoding.

Expand positional weights

Starting at the right, positions carry weights 1, 2, 4, 8, and so on. Add the weights whose bits are one.

Declare bit width and signedness

The pattern 1111 represents 15 as four-bit unsigned data but minus 1 in four-bit two's complement. A representation is incomplete without its interpretation.

Separate integers from fractions and text

Binary fractions use negative powers of two. Text encodings map character codes to bit patterns. Floating-point formats divide bits into fields under a separate standard.

Common mistakes

Frequent errors include reading binary digits as decimal digits and ignoring overflow beyond the chosen width.

  • Label the base.
  • State the bit width.
  • Preserve signedness during conversion.

Worked case: convert binary to decimal

Interpret unsigned binary 1101.

From right to left the place values are 1, 2, 4, 8. The set bits contribute 8+4+1=13.

1101₂ = 13₁₀.

Leading zeros do not change an unsigned magnitude but can communicate bit width.

Worked case: bit width changes interpretation

Interpret 11111111 as an eight-bit pattern.

As unsigned it is 128+64+32+16+8+4+2+1=255. Under eight-bit two's complement, the same pattern represents -1.

The bits alone are insufficient without signedness and width.

Do not present 255 and -1 as arithmetic disagreement; they use different encodings.

Compare binary place value cases before generalising

State base, bit width and signed representation. Fractional binary, floating point and text encodings add further conventions beyond whole-number place value.

binary place value: worked-case comparison
Bit patternConventionValue
1101Unsigned13
111111118-bit unsigned255
111111118-bit two's complement-1

binary place value: calculation checklist

  • Label base
  • Read powers from right
  • State width
  • State signedness
  • Convert back to verify

Choose the right tool

Practical questions

Frequently asked questions

Why do computers use binary?

Digital systems can reliably represent and manipulate two distinguishable logical states, though physical implementation is more complex than literal ones and zeros.

Does 0101 differ from 101?

They have the same unsigned integer value, but the leading zero may communicate a required four-bit width.

Can every decimal fraction be exact in binary?

No. Just as one third repeats in decimal, many decimal fractions repeat in base two and require rounding in finite storage.

Further reading

Authoritative sources

Use these primary and professional resources to check definitions, conventions, or requirements that may extend beyond this guide.