Top Banner
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers
42

Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Dec 23, 2015

Download

Documents

Adam Bridges
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Computer Number Systems

This presentation will show conversions between binary, decimal, and

hexadecimal numbers

Page 2: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Let us review the decimal system…

It is called Base 10 and uses 10 characters, the numbers 0

through 9.

Page 3: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Each position has a value, ones, tens, hundreds, etc. Remember, we move to the right to find the

values.Example: 258

The 2 is hundreds, 5 is tens, and 8 is ones.

Page 4: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

We find the values by multiplying by 1, 10, 100,

etc.2 X 100 = 200

5 X 10 = 508 X 1 = 8

This totals to 258.

Page 5: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

It’s binary time!!!!!

Page 6: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Page 7: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Bi means two. Therefore, binary numbers have only two choices,

either 0 or 1.

Page 8: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Here is an example of a binary number

0 0 1 0 1 0 1 1This would convert to 43 in our

decimal number system.

Page 9: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

LOST ????

Page 10: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Think of each 1 or 0 as a light switch being on or off. 1 means

on and 0 means off.

Page 11: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Each position of the 1 or 0 has a decimal value. We start on the right with the value of 1. We

move to the left and double it to find the next value.

Page 12: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

128 64 32 16 8 4 2 1 0 0 1 0 1 0 1 1

The decimal numbers increase in value from right to left.

Page 13: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

128 64 32 16 8 4 2 1 0 0 1 0 1 0 1 1We add all of the decimal numbers having a binary position value of 1.

Page 14: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

128 64 32 16 8 4 2 1 0 0 1 0 1 0 1 1

43 = 32 + 8 + 2 + 1

Page 15: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Practice

Page 16: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

128 64 32 16 8 4 2 1 0 1 0 1 1 1 1 0

? = + + + +

Page 17: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Did you find the answer to be 94?

Page 18: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

128 64 32 16 8 4 2 1 1 1 1 0 0 0 1 1

Answer: 227

More practice:

Page 19: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Try these:0 1 0 0 1 0 1 11 0 0 0 1 1 0 10 1 0 1 1 0 1 0

Page 20: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Your answers should be:75

14190

Page 21: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Now it’s hexadecimal time!!!3F7A

Page 22: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Hexadecimal is referred to as a Base 16 system. This means we use 16 characters when counting. Our decimal system is Base 10

and uses ten characters(the numbers 0 to 9).

Page 23: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Page 24: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Do you notice a pattern from the chart? It starts over with

multiples of 16(and you thought Math would never be used).

Page 25: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Hexadecimal uses the numbers 0 through 9 and letters A through F as its characters. This makes 16

characters, thus, Base 16.

Page 26: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

When counting in hexadecimal, think of the characters as being place holders rather than digits.

The decimal 24 would be hexadecimal one eight. Also, decimal 29 would be one D.

Review the table.

Page 27: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Get a copy of the table from the instructor.

Page 28: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

How do I convert decimal to hexadecimal???? Divide by 16

and find the remainder.

Page 29: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Example: 18 16 = 1 with remainder of 2. So, decimal 18

would be hex one two (12).

Page 30: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Ex: 24 16 = 1 remainder 8. So, decimal 24 would be hex one

eight (18h). The small h denotes the number is hexadecimal.

Page 31: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

What about 30? Divide by 16 to get 1 remainder 14. Now what?? There are probably 4 or 5 ways to go from here. Most people just count to 14 to find what letter is

needed. This will find the answer to be one E (1Eh).

Page 32: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Try 66?

Page 33: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Was the answer 42h? 66 16 = 4 remainder of 2.

Page 34: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Practice changing decimal to hex: 808592

159160

Page 35: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Answers:50h55h5Ch9FhA0h

Page 36: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

How is the answer A0?????What character comes after 9?

A

Page 37: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

See a pattern???If the decimal is evenly divisible by 16, then the hexadecimal ends

in zero.

Page 38: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Remember, the sequence repeats every 16 characters.

Continue with the LAP…

Page 39: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

0 + 0 = 01 + 0 = 10 + 1 = 1

1 + 1 = 10 (carry of 1 to the next higher column)

0 1 10 0 1--------1 0 0

1 0 1 0 (10)0 0 1 1 (03)---------1 1 0 1 (13)

1 1 1 11 1 1 1 0 (30)0 1 0 1 1 (11)---------------

1 0 1 0 0 1 (41)

1 1 11 0 1 1 1 (23)1 0 1 0 1 (21)----------------

1 0 1 1 0 0 (44)

Page 40: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

0 – 0 = 01 – 0 = 11 – 1 = 00 – 1 = 1

(with a borrow from the next higher column)

1 1 0 0 (12)1 0 0 0 (08)-------------0 1 0 0 (04)

1 1 0 1 1 (27)0 1 0 0 1 (09)

-----------------------1 0 0 1 0 (18)

0 11 0 1 0 1 1

-----------0 1 0

1 2 0 2 0 2

1 0 1 0 1 (21)0 1 1 1 0 (14)

-----------0 0 1 1 1 (07)

Page 41: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

0* 0 = 01 * 0 = 00 * 1 = 01 * 1 = 1

(Multiplication table)

0 / 0 = 01 / 0 = 01 / 1 = 1

(Division Table)

Page 42: Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.

Convert Binary into Real numberNote: real numbers – the whole number which have

decimal value 1110.01 = ?