Quiz 1.1 Convert the following unsigned binary numbers to their decimal equivalent: Number2 Number10 00010101 11111111 01111111.

Slides:



Advertisements
Similar presentations
COMP2130 Winter 2015 Storing signed numbers in memory.
Advertisements

Addition and Subtraction. Outline Arithmetic Operations (Section 1.2) – Addition – Subtraction – Multiplication Complements (Section 1.5) – 1’s complement.
1 IEEE Floating Point Revision Guide for Phase Test Week 5.
Floating Point Numbers
Floating Point Numbers. CMPE12cGabriel Hugh Elkaim 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or.
Floating Point Numbers. CMPE12cCyrus Bazeghi 2 Floating Point Numbers Registers for real numbers usually contain 32 or 64 bits, allowing 2 32 or 2 64.
Booth’s Algorithm.
Chapter 5 Floating Point Numbers. Real Numbers l Floating point representation is used whenever the number to be represented is outside the range of integer.
Floating Point Numbers
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
Floating Point Numbers.  Floating point numbers are real numbers.  In Java, this just means any numbers that aren’t integers (whole numbers)  For example…
Lecture 8 Floating point format
NEGATIVE BINARY NUMBER – Digital Circuit 1 Choopan Rattanapoka.
The Binary Number System
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Chapter Contents.
NUMBER REPRESENTATION CHAPTER 3 – part 3. ONE’S COMPLEMENT REPRESENTATION CHAPTER 3 – part 3.
Computer Architecture
COMPSCI 210 Semester Tutorial 1
Floating Point Representations CDA 3101 Discussion Session 02.
Data Representation Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
CSCI 6307 Foundation of Systems – Exercise (2) Xiang Lian The University of Texas – Pan American Edinburg, TX
ECE 331 – Digital System Design
The Teacher CP4 Binary and all that… CP4 Revision.
Integer & Floating Point Representations CDA 3101 Discussion Session 05.
Fractions in Binary.
INEL 4215: Computer Architecture and Organization Number Systems Signed numbers.
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Floating Point in Binary 1.Place Value Chart:
CEC 220 Digital Circuit Design Binary Codes
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
ECE 3110: Introduction to Digital Systems Number Systems: signed numbers.
1  For recitations  Amr Mahmoud  Office Hours: Monday Benedum Hall.
COSC2410: LAB 2 BINARY ARITHMETIC SIGNED NUMBERS FLOATING POINT REPRESENTATION BOOLEAN ALGEBRA 1.
FLOATING-POINT NUMBER REPRESENTATION
Floating Point Numbers
Nat 4/5 Computing Science Lesson 1: Binary
Fundamentals of Computer Science
Data Representation Covering… Binary addition / subtraction
Computer Science 210 Computer Organization
Addition and Subtraction
Array multiplier TU/e Processor Design 5Z032.
Introduction To Computer Science
Floating Point Representations
Recap Add these numbers together in binary
Convert to a Percent %.
Computer Science 210 Computer Organization
Numbers in a Computer Unsigned integers Signed magnitude
ECE 103 Engineering Programming Chapter 3 Numbers
Computer Science 210 Computer Organization
Number Representations
BCD = Binary Coded Decimal
Data Representation Data Types Complements Fixed Point Representation
EEL 3705 / 3705L Digital Logic Design
Computer Science 210 Computer Organization
Numbers representations
COMS 161 Introduction to Computing
Fill in percent and decimal
Data Binary Arithmetic.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Logical and Arithmetic Shifts.
Number Representations
Chapter 1 Introduction.
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

Quiz 1.1 Convert the following unsigned binary numbers to their decimal equivalent: Number2 Number10 00010101 11111111 01111111

Quiz 1.2 What is the decimal number represented by the following binary digits? Number10 (unsigned) 101112 (sign magnitude) (1's complement) (2's complement)

Quiz 1.3 Fill in the 3 boxes using the appropriate data type arithmetic: What data type uses the same arithmetic logic as an unsigned integer? Which data type has the simplest arithmetic logic? Signed-Magnitude 1’s Complement 2’s Complement 00100110 + 11101101 00100110 + 11101101 00100110 + 11101101

Binary (2’s complement) Quiz 1.4 Convert the following decimal numbers to their 8-bit, 2’s complement binary number equivalent: Name___________________ Section_______ Number10 Binary (2’s complement) 5 123 -35

N = -1s  1.fraction  2(exponent – 127) Quiz 1.5 – FP to Decimal What is the decimal equivalent of the following signed, 16-bit (8 bit fraction), fixed point number? Fractional Part Integral Part 1 2-8 2-7 2-6 2-5 2-4 2-3 2-2 2-1 20 21 22 23 24 25 26 -27 = What is the decimal equivalent of the following 32-bit floating point number? 1 10000011 11000000000000000000000 = s exponent fraction 1 8 23 N = -1s  1.fraction  2(exponent – 127)

Quiz 1.6 – Decimal to FP 1. Convert the following decimal number to a 2’s complement, 16-bit (10 bit fraction) fixed point number. Fractional Part Integral Part 2-10 2-9 2-8 2-7 2-6 2-5 2-4 2-3 2-2 2-1 20 21 22 23 24 -25 -25.8125 = HINT: 0.8125 = 1/2 + 1/4 + 1/16) What is the IEEE 754 binary floating point equivalent of the following decimal number? -37.375 = 2(exponent – 127) (1).Fraction HINT: 0.375 = 1/4 + 1/8)

Quiz 1.7 00000110 (signed magnitude) + 10001101 (signed magnitude) (1’s complement) + 00000010 (1’s complement) (2’s complement) + 00100101 (2’s complement) (decimal10)