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.

Common situations

  • 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.

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.