BIT103 · 2078 · 5 marks
Convert (1011.110) into decimal. and hexadecimal
Convert (1011.110) into decimal. and hexadecimal [5]
Convert $(1011.110)_2$ to Decimal and Hexadecimal
Given Data
- Binary number: $(1011.110)_2$
- Integer part: $1011$
- Fractional part: $.110$
Part 1: Binary to Decimal
Multiply each bit by its positional weight (power of 2) and sum.
Integer part: $1011$
$$1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 = 8 + 0 + 2 + 1 = 11$$
Fractional part: $.110$
$$1 \times 2^{-1} + 1 \times 2^{-2} + 0 \times 2^{-3} = 0.5 + 0.25 + 0 = 0.75$$
Total
$$11 + 0.75 = \boxed{11.75_{10}}$$
Part 2: Binary to Hexadecimal
Group bits into sets of 4, starting from the binary point (left for integer, right for fraction), padding with zeros where needed.
Grouping
- Integer part: $1011$ (already 4 bits)
- Fractional part: $110 \rightarrow 1100$ (pad right with one zero)
$$\underbrace{1011}{\text{integer}} . \underbrace{1100}{\text{fraction}}$$
Convert each group
| Binary Group | Decimal | Hex Digit |
|---|---|---|
| $1011$ | $11$ | $B$ |
| $1100$ | $12$ | $C$ |
Result
$$\boxed{(1011.110)2 = (B.C){16}}$$
Summary
| From | To | Result |
|---|---|---|
| $1011.110_2$ | Decimal | $11.75_{10}$ |
| $1011.110_2$ | Hexadecimal | $B.C_{16}$ |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.