E21 Computer Engineering Fundamentals
September 22, 2026
Determine how many ‘digits’/bits you need to represent the number one billion in:
Decimal
Answer:
1000000000
10 digits
Binary
Answer:
0b111011100110101100101000000000
30 bits.
Hexadecimal
Answer:
0x3B9ACA00
8 bits.

0, 1, 2, …, 2551000, 1001, 1002, …, 1255-1, 0, 1, 2, … 254-2, -1, 0, 1, 2, … 253-10, -9, -8, -7, -6, … 245-128, -127, -126, … 0 … 126, 127The sign-magnitude representation is one way to represent integers in binary.
The most significant bit is reserved for the sign. 1 \(\implies\) negative.
The number \(9\)
| Sign | \(2^7\) | \(2^6\) | \(2^5\) | \(2^4\) | \(2^3\) | \(2^2\) | \(2^1\) | \(2^0\) | |
|---|---|---|---|---|---|---|---|---|---|
0 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
The number \(-56\)
| Sign | \(2^7\) | \(2^6\) | \(2^5\) | \(2^4\) | \(2^3\) | \(2^2\) | \(2^1\) | \(2^0\) | |
|---|---|---|---|---|---|---|---|---|---|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
A fixed point number has a ‘decimal point’ located at a fixed position in the place-value scheme.
Consider two different fixed point decimal representations of the number one hundred, both with 6 decimal digits.
100.000
0100.00
Questions to consider:
999.999 B: 9999.990.001 B: 0.01| Quantity | Value |
|---|---|
| Largest + Number | 999.999 |
| Smallest + Number | 000.001 |
| Increment | 000.001 |
| Pieces of info to store | six |
| Quantity | Value |
|---|---|
| Largest + Number | 999999. |
| Smallest + Number | .000001 |
| Increment | depends |
| Pieces of info to store | six + one |
000000.00000.00000.00000.00000.00000.00000.000000Recall the scientific notation of numbers: \[-2.34 \times 10^5\]

00000\(= 0\) and largest 5-bit binary number 11111\(=\) 31003.0025,| Place | \(10^2\) | \(10^{1}\) | \(10^{0}\) | \(.\) | \(10^{-1}\) | \(10^{-2}\) | \(10^{-3}\) | \(10^{-4}\) |
|---|---|---|---|---|---|---|---|---|
| Value | 0 |
0 |
3 |
. |
0 |
0 |
2 |
5 |
0 |
0 |
\(3\times 10^{0}\) | 0 |
0 |
\(2 \times 10^{-3}\) | \(5 \times 10^{-4}\) |
With the IEEE format, the 16 bits

represent the number

which, in binary form, should be intepreted as \[-1.0001000100_2 \times 2^{(10001_2 \text{ minus fifteen})}\]
The exponent is 0b10001 minus fifteen, i.e., \(17 - 15 = 2\)
The significand is \[- \left( 1 \times 2^{0} + 1 \times 2^{-4} + 1 \times 2^{-8} \right) \]
\[ = - \left( 1 + \frac{1}{16} + \frac{1}{256} \right)\]
\[ = - \left( \frac{256}{256} + \frac{16}{256} + \frac{1}{256} \right) = - \frac{273}{256} = -1.066406250\]
So the number is \(-1.066406250 \times 2^{2} = \fbox{-4.265625}\)

0b1100010001000100 is often written as 0xC444.E21 • Fall 2026 • Lecture 07 • September 22, 2026 • ↩︎