{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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

View Full Document
2 Also, you are responsible for knowing how to add and multiply binary
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}