Jozef Goetz, 2011 1 2 Converting numbers 1.Converting from the base 2, 5, 8 and 16 numbers to the base 10 number See all a.s for the next slides 2. Converting.

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

NUMBERS DESCRIBE THE SYSTEM
Sample Test 1 Question. A pattern of binary digits can be interpreted in several different ways. Show how the pattern translates using each of.
James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal.
Numbers. Number Conversion Convert – Binary number to decimal numbers – Octal numbers to decimal numbers – Hexadecimal to decimal numbers Convert – Decimal.
Decimal Addition What is going on? (carry) (subtract the base)
Prepared By Rama Gaikwad 1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20,
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Number Systems.
Supplemental Chapter Number Bases
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Number System. Popular number systems Decimal. (Base 10). The system that we humans are most familiar with. Binary. (Base 2). Octal. (Base 8). Hexadecimal.
NUMBER SYSTEM.
CONVERSION OF NUMBER SYSTEMS FAHEEM ANWAR MANAGER NETWORKS ACADEMY PTCL ACADEMY.
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.
Positional Notation 642 in base 10 positional notation is:
NUMBER SYSTEMS Binary Base 2 Octal Base 8 DecimalBase 10 HexadecimalBase 16.
Number Base Conversions
Converting From decimal to Binary & Hexadecimal to Binary
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Unit 7 Number Systems and Bases Presentation 1Binary and Base 10 Presentation 2Adding Binary Numbers Presentation 3Subtracting Binary Numbers Presentation.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Chapter 4 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
8421 Binary Hexadecimal Seven segment display 8421 Binary Hexadecimal Seven segment display 0000.
Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Binary Numbers Practice.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
COMPUTER FUNDAMENTALS David Samuel bhatti
YOUR VIRTUAL WORLD – THE HEXADECIMAL NUMBERING SYSTEM Prepared by Mrs. Christina Morris, July, 2014.
Computer Science 210 Computer Organization
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
COMPUTER ORGANIZATION
By: Jonathan O. Cabriana
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
CSE 102 Introduction to Computer Engineering
Convert Binary Number to Octal
Location in course textbook
continued on next slide
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Data Storage Introduction to computer, 2nd semester, 2010/2011
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Binary Quiz UIN: ____________________
                                                                                                                                                                                                                                                
Number Systems and Binary Arithmetic
continued on next slide
continued on next slide
Number Systems Base 2, 10, 16.
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Computer Science 210 Computer Organization
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
There are 10 types of people of people in this world…
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Remember the 10 types of people of people in this world…
Computer Science 1 Review and finish Number base conversion
continued on next slide
Lecture 37 – Practice Exercises 9
Lecture 37 – Practice Exercises 9
1. Number Systems Chapt. 2.
continued on next slide
Presentation transcript:

Jozef Goetz,

2 Converting numbers 1.Converting from the base 2, 5, 8 and 16 numbers to the base 10 number See all a.s for the next slides 2. Converting from the base 10 number to the base 2, 5, 8 and 16 numbers See b. c. d for the next two slides 3. Converting back and forth (for the power of 2 number system) binary, octal and hexadecimal base numbers – see conversion/binary-to-decimal-hexa-octal-converter.htmhttp://ncalculators.com/number- conversion/binary-to-decimal-hexa-octal-converter.htm See c. d slide 5 and c. slide 6 Having algorithms for 1, 2 and 3 we can basically convert from any base number system to any one.

Jozef Goetz, > 10 |-> 5 -> 8 -> 16 All a.s for the next slides are referring to converting from 2, 5, 8, 16 to base 10 number Converting from the base 2 to 5, 8 and 16 numbers via the base 10 number: a.(101001) 2  (x) 10 = 1x x2 3 +1x2 0 = (41) 10 b. (41) 10  (x) 5 = 41/5 = 8  1 8/5 =1  3 1/5 =0  1 =(131) 5 c. (41) 10  (x) 8 = 41/8 =5  1 5/8 =0  5 =(51) 8 d.(41) 10  (x) 16 =41/16=2  9 2/16=0  2 =(29) 16

Jozef Goetz, > 10 |-> 5 -> 8 -> 16 Converting from the base 2 to 5, 8 and 16 numbers via the base 10 number: a.(101001) 2  (x) 10 = 1x x2 3 +1x2 0 = (41) 10 b. (41) 10  (x) 5 = 41/5 = 8  1 8/5 =1  3 1/5 =0  1 =(131) 5 c. (41) 10  (x) 8 = 41/8 =5  1 5/8 =0  5 =(51) 8 d.(41) 10  (x) 16 =41/16=2  9 2/16=0  2 =(29) 16

Jozef Goetz, > 10 -> 2|-> 8 -> 16 Converting from the base 5 to 2, 8 and 16 numbers via the base 10 number: a. (1234) 5  (x) 10 = 1x x5 2 +3x5 1 +4x5 0 = = (194) 10 b. (194) 10  (x) 2 = =( ) 2 c. ( ) 2  (x) 8 = 011 = = = 2 =(302) 8 d.( ) 2  (x) 16 =1100 = 12 = C 0010 = 2 =(C2) 16

Jozef Goetz, > 10 |-> (2-> 16) -> 5 a. (1234) 8 = (x) 10 = 1x x x x8 0 = = (668) 10 b.(668) 10  (x) 2 =668/2 =334  0 334/2 =167  0 167/2 =83  1 83/2 =41  1 41/2=20  1 20/2=10  0 10/2=5  0 5/2=2  1 2/2=1  0 1/2 =0  1 =( ) 2 c. ( ) 2  (x) 16 =0010 = = = C =(29C) 16 d. (668) 10  (x) 5 = 668/5 =133  3 133/5=26  3 26/5=5  1 5/5=1  0 1/5=0  1 =(10133) 5

Jozef Goetz, > 10 -> 2-> 8 10-> 5 a. (2C58) 16 =(x) 10 = 2x x x x 16 0 = =(11352) 10 b. (11352) 10  (x) 2 = 11352/2=5676  /2=2828  /2 =1419  /2=709  1 709/2=354  1 353/2=177  0 177/2=88  1 88/2=44  0 44/2=22  0 22/2 =11  0 11/2=5  1 5/2=2  1 2/2=1  0 1/2=0  1 =( ) 2 c. ( ) 2  (x) 8 = 010 = = = = = 0 =(26130) 8 d. (11352) 10  (x) 5 =11352/5=2270  2 =2270/5=454  0 =454/5=90  4 =90/5=18  0 =18/5=3  3 =3/5=0  3 =(330402) 5