DigitValue Denotation NumericValue Denotation 2thousands1,000 0hundreds100 4tens10 8ones1 Computer Organization Basic Computer Concepts Number Systems.

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

Calculating in Other Bases
DATA REPRESENTATION CONVERSION.
Number SystemsNumber Systems Modified By: AM. Sihan (Hardware Engineering)
Copyright (c) 2004 Professor Keith W. Noe Number Systems & Codes Part I.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Numbering Systems. CSCE 1062 Outline What is a Numbering System Review of decimal numbering system Binary representation range Hexadecimal numbering system.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
ENGINEERS FUTURE To optimize things When we type some letters or words, the computer translates them in numbers as computers can understand only numbers.
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.
NUMBER SYSTEM Decimal System Binary System. We use two digits in this system (0,1) just like the existing system of computers.. And write the number in.
Number Systems Prepared by Department of Preparatory year.
Positional Notation 642 in base 10 positional notation is:
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
CSC 107 – Programming For Science. Positional Notation  Used in nearly all modern numerical systems  Right-to-left ordering of digits within larger.
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,
PHY 107 – Programming For Science. Positional Notation  Used in nearly all modern numerical systems  Right-to-left ordering of digits within larger.
Discrete Mathematics Numbering System.
Chapter 4 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Week 1(Number System) Muhammad Ammad uddin Logic Design Lab I (CEN211)
Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary.
Decimal Numbers.
Different Numeral Systems
Consider this number: , Ones (7 ones) Tens (no tens)
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
Binary Positional Notation
Positional Notation A positional or place-value notation is a numeral system in which each position is related to the next by a constant multiplier, called.
Copyright (c) 2004 Professor Keith W. Noe
Lecture 3: Binary values and number systems
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Octal & Hexadecimal Number Systems
CSE 102 Introduction to Computer Engineering
Convert Binary Number to Octal
Octal & Hexadecimal Number Systems
Number Systems Lab session 1 Xuan Guo.
Number Systems & Binary
Tools of Web Development 1: Module A: Numbering Systems
Octal & Hexadecimal Number Systems
Introduction to IT By: Muhammed s. anwar.
Number Systems Base 2, 10, 16.
Octal & Hexadecimal Number Systems
Chapter 2 Number Systems.
Lecture 4 Number Systems. von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Converting from Base-n to Base-10
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Chapter 2 Number System.
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

DigitValue Denotation NumericValue Denotation 2thousands1,000 0hundreds100 4tens10 8ones1 Computer Organization Basic Computer Concepts Number Systems Concepts  “Deka” – Greek word denoting a value equal to ten Table 1: Decimal Example 2,048 TABLE 2: The value denotation of a number “place” or position  Given a base-n number system, the value denotation of a position m is: m Value denotation x n 3 1 x n x n 4 1 x n x n x n M 1 x n x n... x n (n multiplied M-1 times)0

Basic Computer Concepts Number Systems Concepts Example A:  Finding the value of a number in any number system Given a base-n system and a number PQRST, the value is given by: T x 1 + S x n + R x n x n + Q x n x n x n + P x n x n x n x n Example B:  Given a base-8 system and a number 56472, the value is given by: Value 2x1= 2 7 x 8 = 56 4 x 64 = x 512 = 3,072 5 x 4,096 = 20,480 Step 2x1 +7x8 +4x8x8 +6x8x8x8 +5x8x8x8x8 Total: 23,866 Computer Organization

Basic Computer Concepts Number Systems Concepts TABLE 3: General method for obtaining the value denotation of a base-n numeral Value denotation V m The value denotation of a position m in a base-n number system is: value denotation V m = n (m-1) Decimal value N of a base-n numeral The decimal value N of a number p k p k-1 p k-2,..,p 2 p 1 in a base-n number system is given by: numerical value N = i=1 ? i=k p i V i = i=1 ? i=k p i n (i-1)

Computer Organization Basic Computer Concepts Number Systems Concept Examples: 1. Derive the decimal value of Solution: From Table 3: = 0 x x x 9 2 = 0 x1+ 4 x9+ 6 x9x9 = = Derive the decimal value of Solution: From Table 3: = 0 x x x 12 2 = 0 x x x 12 x 12 = =

Computer Organization Basic Computer Concepts Number Systems Concept Using the notation of Table 3: 3. Derive the decimal value of Solution: From Table 3: = i=1 ? i=3 pi 16 (i-1) = 0 x X X 16 2 Value = = 1600

Computer Organization Basic Computer Concepts Hexadecimal, Octal, & Binary Systems 1. Derive the decimal value of Solution: = 1 x x x x x x x x 2 7 Value = = Derive the decimal value of Solution: = 3 x x x x x x x x 8 7 Value = =

Computer Organization Basic Computer Concepts Hexadecimal, Octal, & Binary Systems 3. Derive the decimal value of 24CF 16 Solution: 24CF 16 = F x C x x x 16 3 Value = =

, , Computer Organization Basic Computer Concepts Converting: Decimal to Another Number System  Given a decimal number M, to convert to a number system with base - n: As an example, let M = 2,654 and n = 8

Computer Organization Basic Computer Concepts Converting: Decimal to Another Number System 2,65410 = 51368

Computer Organization Basic Computer Concepts Converting: Decimal to Another Number System Derive the octal value of Solution: a. Convert to decimal: = 1 x x x x 2 3 decimal value = = b. Convert to octal: : 11/8 = 1 remainder 3 : 3/1 = 3 remainder 0 octal value = 138

Computer Organization Basic Computer Concepts Converting: Decimal to Another Number System Shortcut Method Derive the octal value of Solution: Group the binary digits into three : = = Now010= = = 3 Therefore = 273 8

Computer Organization Basic Computer Concepts Converting: Decimal to Another Number System Shortcut Method Derive the hexadecimal value of Solution: Group the binary digits into four : = Now = = 11 But = B; therefore = BB 16