Course: CSCI 1900

Decimal ↔ Hex

17510→AF16

  • 175=16×10+15
    • 15 → “F”
  • 10=16×0+10
    • 10 → “A”
  • Characters in reverse → AF

AF16→17510

  • 10×161+15×160=17510

Decimal ↔ Binary

7310→10010012

  • 73=2×36+1
  • 32=2×18+0
  • 18=2×9+0
  • 9=2×4+1
  • 4=2×2+0
  • 2=1×2+0
  • 1=0×2+1
  • Characters in reverse → 10010012

10010012→7310

  • 26+23+20=73