Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP 2610 1.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Number Systems Discussion D4.1 Appendix C. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Decimal Addition What is going on? (carry) (subtract the base)
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Number Systems and Codes Discussion D4.1. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
1 Lecture 2: Number Systems Binary numbers Base conversion Arithmetic Number systems  Sign and magnitude  Ones-complement  Twos-complement Binary-coded.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
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,
ECE 331 – Digital System Design
Chapter 2: The Logic of Compound Statements 2.5 Application: Number Systems and Circuits for Addition 1 Counting in binary is just like counting in decimal.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Chapter 3 Complements Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
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,
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
1 4. Computer Maths and Logic 4.1 Number Systems.
Module 2.  In Module 1, we have learned basic number representation which include binary, octal, hexadecimal and decimal.  In digital systems, numbers.
ECE 362 Microprocessor Systems and Interfacing ©5-1 Lecture 1 Hexadecimal Computation Outline n Decimal n Binary n Octal n Hexadecimal.
Number Systems and Computer Arithmetic Winter 2014 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Computer Organization 1 Data Representation Negative Integers.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Number Systems. There are 10 kinds of people in the world, those who understand binary and those who don’t.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
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)
DIGITAL Logic DESIGN Digital system and binary numbers Lecturer: Ms. Farwah Ahmad.
Recitation3: CS 3843 Computer Organization 4th week
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Scientific Notation.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Number Systems.
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
Number Systems Base 2, 10, 16.
Hexadecimal Conversions
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
CPS120: Introduction to Computer Science
Number Systems Rayat Shikshan Sanstha’s
Binary  Name: Class: .
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number System.
Chapter 2 Number Systems.
Dr. Clincy Professor of CS
Presentation transcript:

Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP

Hexadecimal Notation A – 10 B – 11 C – 12 D – 13 E – 14 F - 15

Hexadecimal Notation How do we convert from decimal -> hexadecimal? We divide by 16 and use the remainer as before in the radix method

Hexadecimal Notation Convert the following numbers to hexadecimal: – 128 – 273 – 983

Hexadecimal Notation Converting to decimal from hexadecimal works similarly. We have to use the base of 16. If M = (b k b k-1 …b 2 b 1 b 0 ) 16, then M=b k x 16 k + b k-1 x 16 k-1 +… + b b

Hexadecimal Notation Convert the following hexadecimal numbers to unsigned decimal form: – 0x34 – 0x10D – 0xABC4

Hexadecimal Notation Addition with hexadecimal form follows the same as binary using long addition However, the carry can be more difficult to handle: you have to mod by 16 to get the right carry value You have to remember A=10, B=11, etc

Hexadecimal Notation Add: – 0x027A + 0x123 – 0xA xB35D