Converting Binary & Decimal Flashcards

All 5 cards in this deck

What are the eight place values of an 8-bit binary number?

128, 64, 32, 16, 8, 4, 2, 1.

What is the largest decimal number that can be stored in 8 bits?

255 (11111111).

What are the steps to convert a decimal number to 8-bit binary?
e.g. convert 20

  1. Write the place values 128 64 32 16 8 4 2 1.
  2. Working from the left, put a 1 where the value fits and subtract it: 16, then 4.
  3. Fill the rest with 0s: 00010100.

What are the steps to convert an 8-bit binary number to decimal?
e.g. convert 00001101

  1. Write the place values above the bits.
  2. Add the place values wherever there is a 1: 8+4+18 + 4 + 1.
  3. Answer: 13.

What is the largest whole number that can be stored in nn bits?

2n−12^n - 1
e.g. 4 bits can hold up to 15 (1111).