[prev] 59 [next]

Fractions in different Bases

The decimal fraction 0.75 means
  • 7*10-1 + 5*10-2 = 0.7 + 0.05 = 0.75
  • or equivalently 75/102 = 75/100 = 0.75
Similary 0b0.11 means
  • 1*2-1 + 1*2-2 = 0.5 + 0.25 = 0.75
  • or equivalently 3/22 = 3/4 = 0.75
Similarly 0x0.C means
  • 12*16-1 = 0.75
  • or equivalently 12/161 = 3/4 = 0.75
Note: We call the . a radix point rather than a decimal point when we are dealing with other bases.