Meaning and assumptions
In a positional number system, the base determines each digit’s weight. The rightmost digit has weight b0; every place to the left multiplies that weight by b. The same nonnegative integer can be written in binary, decimal or hexadecimal.[1]
The base b is an integer at least2 and every digit lies between0 and b−1. This guide covers nonnegative integers without signed or floating-point interpretation. Leading zeros do not change value, but may change the specified field width.[1]
Why the approach works
The positional sum follows from repeated grouping: b units in one position form one unit in the next higher position. To convert a decimal integer to another base, repeatedly divide by b with remainder. The first remainder belongs to the lowest position; read the remainders in reverse at the end. In base16, A through F stand for10 through15. One hexadecimal digit corresponds to exactly four binary digits because16=24. Reading the same bits as unsigned, two’s complement or another format is a separate interpretation decision.[1]
Two complete worked examples
Evaluate a binary numeral
- Given
- Given1011012.
- Find
- Result
Assign weights from right to left.
Add weights with digit1.
Result: Result:1011012=4510=2D16.
Check: 2D16=2×16+13=45; binary groups0010 and1101 correspond to2 and D.
Convert decimal to hexadecimal
- Given
- Write31410 in base16.
- Find
- Result
Repeatedly divide by16 and record remainders.
Read the remainders backwards;10 is A.
Result: Result:13A16.
Check: 1×256+3×16+10=314.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five exercises with solutions
Calculate · Application
What is the decimal value of11102?
Show hint
State the approach and assumptions before substituting.
Learning goal: What is the decimal value of11102?
Show solution and calculation
8+4+2=14.
Rearrange · Application
Write2710 in binary.
Show hint
State the approach and assumptions before substituting.
Learning goal: Write2710 in binary.
Show solution and calculation
27=16+8+2+1, giving110112.
Interpret · Application
How many unsigned values fit in8 binary digits?
Show hint
State the approach and assumptions before substituting.
Learning goal: How many unsigned values fit in8 binary digits?
Show solution and calculation
28=256 values from0 through255.
The count is256; the maximum is255.
Error analysis · Application
Why is1022 not a valid binary numeral?
Show hint
State the approach and assumptions before substituting.
Learning goal: Why is1022 not a valid binary numeral?
Show solution and calculation
Base2 permits digits0 and1 only.
Digit2 violates that limit.
Transfer · Challenge
Why does111111112 not always represent255?
Show hint
State the approach and assumptions before substituting.
Learning goal: Why does111111112 not always represent255?
Show solution and calculation
Unsigned it represents255; in an8-bit two’s-complement format the same bit pattern represents−1.
State the format convention.
Check your understanding with the formula’s reference test.
5 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Related next steps
Related foundations: Two’s-complement signed integer, IEEE 754 floating-point representation and rounding.
Sources for this explanation
Quanta · Updated November 6, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Locally authored DE/EN article with two original examples, five exercises, model limits and a native diagram.
Cite this reference page
Quanta. Number bases: binary, decimal and hexadecimal. Updated November 6, 2026. https://quanta-study.de/en/formula-sheet/zahlensysteme-stellenwert
When citing a specific scientific statement, also cite the specialist source linked to that statement.