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

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Binary Addition Rules Adding Binary Numbers = = 1
Information Processing Session 5B Binary Arithmetic Slide
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 4.2 Binary numbers: Arithmetic
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Real Numbers and the Decimal Number System
Number Systems.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Number Systems Binary and Hexadecimal. Base 2 a.k.a. Binary  Binary works off of base of 2 instead of a base 10 like what we are taught in school 
Numbering Systems CS208.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Place value and ordering
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Salisbury Numbers we use in Auto Shop Why do I need to know this. When working on the computers in the auto shop sometimes we need to look into the.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Operations with Scientific Notation. Addition and Subtraction Format Addition (N * 10 x ) + (M * 10 x ) = (N + M) * 10 x Subtraction (N * 10 y ) - (M.
Number systems, Operations, and Codes
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
Visualizing Decimal and Binary
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Math 5 Using Exponents to Write Numbers
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Springfield Technical Community College Center for Business and Technology.
1 4. Computer Maths and Logic 4.1 Number Systems.
Introduction To Number Systems Binary System M. AL-Towaileb1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computer Number System
ECE 362 Microprocessor Systems and Interfacing ©5-1 Lecture 1 Hexadecimal Computation Outline n Decimal n Binary n Octal n Hexadecimal.
Binary Decimal Hexadecimal
COMPUTER PROGRAMMING I Objective 1.02 Understand Numbering Systems.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Number systems Visualizing Decimal and Binary. We count in base 10 because people started by counting on their fingers Base 10 is a number system that.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
× ÷ by 10, 100 & 100 Read through the PowerPoints and answer any questions before clicking to the answer.
Binary & Hex Review.
Digital Design Chapter One Digital Systems and Binary Numbers
Binary and Hexadecimal
Different Numeral Systems
Discrete Mathematics Numbering System.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
COMPUTING FUNDAMENTALS
Convert Decimal to Binary
Chapter 3 Data Representation
Number Systems & Binary
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Number Systems.
Multiplying by powers of 10 Decimals
Number Systems and Binary Arithmetic
Numbering System TODAY AND TOMORROW 11th Edition
Digital Electronics and Microprocessors
Objective 1.02 Understand Numbering Systems
Converting from Base-n to Base-10
Binary & Hex Review.
Information Representation
Introduction To Number Systems
Presentation transcript:

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.

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.

We find the values by multiplying by 1, 10, 100, etc. 2 X 100 = X 10 = 50 8 X 1 = 8 This totals to 258.

It’s binary time!!!!!

Bi means two. Therefore, binary numbers have only two choices, either 0 or 1.

Here is an example of a binary number This would convert to 43 in our decimal number system.

LOST ????

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

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.

The decimal numbers increase in value from right to left.

We add all of the decimal numbers having a binary position value of 1.

=

Practice

? =

Did you find the answer to be 94?

Answer: 227 More practice:

Try these:

Your answers should be:

Now it’s hexadecimal time!!! 3F7A

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).

Do you notice a pattern from the chart? It starts over with multiples of 16(and you thought Math would never be used).

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

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.

Get a copy of the table from the instructor.

How do I convert decimal to hexadecimal???? Divide by 16 and find the remainder.

Example: 18  16 = 1 with remainder of 2. So, decimal 18 would be hex one two (12).

Ex: 24  16 = 1 remainder 8. So, decimal 24 would be hex one eight (18h). The small h denotes the number is hexadecimal.

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).

Try 66?

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

Practice changing decimal to hex:

Answers: 50h 55h 5Ch 9Fh A0h

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

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

Remember, the sequence repeats every 16 characters. Continue with the LAP…

0 + 0 = = = = 10 (carry of 1 to the next higher column) (10) (03) (13) (30) (11) (41) (23) (21) (44)

0 – 0 = 0 1 – 0 = 1 1 – 1 = 0 0 – 1 = 1 (with a borrow from the next higher column) (12) (08) (04) (27) (09) (18) (21) (14) (07)

0* 0 = 0 1 * 0 = 0 0 * 1 = 0 1 * 1 = 1 (Multiplication table) 0 / 0 = 0 1 / 0 = 0 1 / 1 = 1 (Division Table)

Convert Binary into Real number Note: real numbers – the whole number which have decimal value = ?