d.) Converting to binary numbers and vice versa

  • To convert a number into binary form:
    • First , divide the number by two
    • Next, record the remainder (this will wither be zero or one)
      • Next, repeat this process until the quotient is equal to zero
    • Finally, display the remainders in reverse order to convert your number into binary form!
  • Example:
    • Binary number for 4:
      • 4/2 = 2 (remainder zero)
      • 2/2 = 1 (remainder zero)
      • 1/2 = 0.5 (remainder one)
        • Binary number = 100
  • To convert a binary number into numerical form:
    • Multiply each digit of a binary number from right to left with powers of 2 starting from 0 and add each result to get the number value
  • Example:
    • Number value for 10101:
      • 1 x 2^0 = 1
      • 0 x 2^1 = 0
      • 1 x 2^2 = 4
      • 0 x 2^3 = 0
      • 1 x 2^4 = 16
        • 1 + 0 + 4 + 0 + 16 = 21

Leave a Reply

Your email address will not be published. Required fields are marked *