Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Information Processing
CISCO NETWORKING ACADEMY Chabot College ELEC 74A Hexadecimal Introduction.
Number Systems and Arithmetic
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Prepared By Rama Gaikwad 1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20,
Number Systems and Codes In PLC
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. 1 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3,
Number Systems.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Supplemental Chapter Number Bases
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
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.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Number Systems 0, 1 0, 1, 2,
CPIT 201 Introduction to Computing
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
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:
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.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH 2 Number Systems CPIT 201 Introduction.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Lecturer: Santokh Singh
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Digital Design Chapter One Digital Systems and Binary Numbers
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
By: Jonathan O. Cabriana
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
CSE 102 Introduction to Computer Engineering
Number Systems Lab session 1 Xuan Guo.
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Chapter 1 Number Systems & Conversions
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
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
There are 10 types of people of people in this world…
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Binary Lesson 4 Hexadecimal and Binary Practice
Chapter 2 Number Systems.
Chapter 2 Number Systems.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Chapter 2 Number Systems.
Remember the 10 types of people of people in this world…
Number systems Converting numbers between binary, octal, decimal, hexadecimal (the easy way)
Chapter 2 Number Systems.
Course Code 114 Introduction to Computer Science
Presentation transcript:

Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic University of Gaza

Hexadecimal (Hex) Hex is a numbering system that uses Base 16. The numbers are represented normally, but the numbers through are represented by the letters A through F 1 hex digit is equivalent to 4 bits Numbers are 0,1,2…..8,9, A, B, C, D, E, F. The following shows that the number (2AE) 16 in hexadecimal is equivalent to 686 in decimal. The following shows that the number (2AE) 16 in hexadecimal is equivalent to 686 in decimal. The equivalent decimal number is N = = 686. The equivalent decimal number is N = = 686.

Hexadecimal (Hex) Using hexadecimal, a very large binary string of 1s and 0s can be represented with just a few hexadecimal numbers by breaking the binary number into groups of four and then using the hexadecimal equivalent; for example, can be written as

Hexadecimal to decimal The following shows how to convert the hexadecimal number (1A) 16 to decimal The following shows how to convert the hexadecimal number (1A) 16 to decimal = 1 × A × 16 0 = ×1 =16+10 = 26 convert (F4C) 16 to decimal = (F x 16 2 ) + (4 x 16 1 ) + (C x 16 0 ) = (15 x 256) + (4 x 16) + (12 x 1)

Decimal to hexadecimal convert (4768) 10 to hex. = 4768 / 16 = 298 remainder 0 = 298 / 16 = 18 remainder 10 (A) = 18 / 16 = 1 remainder 2 = 1 / 16 = 0 remainder 1 Answer: 1 2 A 0

Hexadecimal to binary (24C) 16 (24C) 16 Each hexadecimal digit is converted to 4-bit patterns Each hexadecimal digit is converted to 4-bit patterns 2 → 0010, 4 → 0100, and C → → 0010, 4 → 0100, and C → 1100 (306 ) = ( )

Binary to hexadecimal Convert ( ) 2 to hexadecimal ? We first arrange the binary number in 4-bit patterns: E 2 Convert ( ) 2 to hexadecimal? C 6 B

Octal The Octal numbering system is similar to the Hexadecimal numbering system. This big difference is that the maximum value for Octal is 7 since it is Base 8 1 octal digit is equivalent to 3 bits.

Octal (1256) 8 (1256) 8

Octal to Decimal convert (632) 8 to decimal = (6 x 8 2 ) + (3 x 8 1 ) + (2 x 8 0 ) = (6 x 64) + (3 x 8) + (2 x 1) = = (410) 10

Decimal to Octal convert (177) 10 to octal 177 / 8 = 22 remainder is 1 22 / 8 = 2 remainder is 6 2 / 8 = 0 remainder is 2 Answer = 2 6 1

Binary to octal = =

Octal to binary convert (632) 8 to binary ( ) 2