chapter5 - Make sure you read the readings on binary...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Make sure you read the readings on binary numbers pg 100-101. You are responsible for knowing how to convert a decimal number to a binary and vice-versa. Let’s look at some examples: Binary to Decimal: Convert 10110101 to decimal: Set up your “scale” so that each digit on the binary number matches a number on your scale 128 64 32 16 8 4 2 1 1 0 1 1 0 1 0 1 Add the numbers that match the “ones” in your binary: 128+32+16+4+1 = 181 Decimal to Binary : Convert 156 to binary: Set up your “scale” so that the first number on the left is the largest power of two that is still contained in the number you are dealing with. Then subtract the largest number on your “scale” from your decimal number: 156-128=28 and put a “1” under 128. Look for the next number on you scale that is contained in what is left: 28 -16=12 put a “1” under 16. Repeat this until you have nothing left: 12-8=4 put a 1 under 8; 4-4=0 put a 1 under 4: 128 64 32 16 8 4 2 1 1 0 0 1 1 1 0 0 So, the binary for 156 is 10011100
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Also, you are responsible for knowing how to add and multiply binary
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/08/2011 for the course SMT 310 taught by Professor Staff during the Summer '08 term at CSU Dominguez Hills.

Page1 / 6

chapter5 - Make sure you read the readings on binary...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online