2077 4

BIT103 ยท 2077 ยท 5 marks

Convert (1011.110) into decimal and hexadecimal.

Convert (1011.110) into decimal and hexadecimal. [5]

Digital LogicChapter 1: Number Systems and ConversionsFractional number conversionsNumerical: binary to decimal/hex conversion

Convert $(1011.110)_2$ to Decimal and Hexadecimal

Given

Given data:

  • Binary number: $1011.110_2$
  • Integer part: $1011$
  • Fractional part: $110$

Required conversions: to decimal (base 10) and to hexadecimal (base 16).


Solution

Part A: Binary to Decimal

Integer part $1011$:

$$1\times2^3 + 0\times2^2 + 1\times2^1 + 1\times2^0 = 8 + 0 + 2 + 1 = 11$$

Fractional part $.110$:

$$1\times2^{-1} + 1\times2^{-2} + 0\times2^{-3} = 0.5 + 0.25 + 0 = 0.75$$

Combine:

$$(1011.110)2 = 11 + 0.75 = (11.75){10}$$


Part B: Binary to Hexadecimal

Group into blocks of 4 bits from the binary point outward, padding with zeros.

Integer part: $1011$ (already 4 bits)

$$1011_2 = 8+2+1 = 11 = B$$

Fractional part: $110 \rightarrow$ pad right to $1100$

$$1100_2 = 8+4 = 12 = C$$

Result:

$$(1011.110)2 = (B.C){16}$$

Check via decimal: $11.75_{10} = B + 0.75$. Fraction $0.75 = \frac{12}{16} = 0.C_{16}$. โœ“


Summary

FromToResult
$(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.