OBJECTIVES You should be able to:  Convert binary fractions to a decimal  Convert decimal fractions to binary.

Slides:



Advertisements
Similar presentations
Understanding Binary Basics
Advertisements

Factors Objective – To be able to find all the factors of a given integer.
DATA REPRESENTATION CONVERSION.
Fractions During this topic you will learn to:
James Tam Beyond base 10: Non-decimal based number system What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
Lecture 3 Number Representation 2 This week – Recap Addition – Addition circuitry – Subtraction of integers in binary – Representing numbers with fractional.
Data Representation in Computers
Fractions, Decimals, & Percent Conversions
Decimals.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Multiplying Decimals. Multiplying Decimals Notes Multiply as usual, ignoring the decimal points. Count how many total digits are to the right of the decimal.
RATIONAL NUMBERS: 1-1A MA.8.A.6.4. A rational number can be written as a fraction (where denominator is not 0) Exs:,, Rational Numbers Chapter 1: Rational.
The Real Number System. The natural numbers are the counting numbers, without _______. Whole numbers include the natural numbers and ____________. Integers.
Converting binary to decimal decimal to binary
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Rational Numbers and Decimals
Number Systems.
Data Representation – Binary Numbers
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Converting Repeating Decimals to Fractions. This Gets a Little Complex As we go through a few examples, I want you to look for patterns.
Previously, we learned how to convert a decimal to a fraction
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
Today we will review “Multiplying & Dividing Decimals”
Number Systems Ron Christensen CIS 121.
Number systems, Operations, and Codes
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Number Base Conversions
Write Equivalent Fractions
Fractions in Binary.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Introduction To Number Systems Binary System M. AL-Towaileb1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Example 1 Writing Powers Write the product as a power and describe it in words. a. 44= to the second power, or 4 squared 9 to the third power,
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Objective SWBAT compare and order fractions and decimals.
During this topic you will review: EEquivalence of fractions. SSimplifing a fraction. CChange proper fractions to improper fractions. CChange.
Floating Point Numbers
Department of Computer Science Georgia State University
Fractions During this topic you will learn to:
Introduction To Number Systems
Section 2-7, “Comparing and Ordering Rational and Irrational Numbers”
Rational Numbers and Decimals
Digital Logic & Design Adil Waheed Lecture 02.
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
Convert Decimal to Binary
Chapter R Prealgebra Review Decimal Notation.
Objective SWBAT compare and order fractions and decimals.
Number System conversions
Objective Compare and order fractions and decimals.
Multiplying Decimals.
Fractions During this topic you will learn to:
Writing Decimals as Fractions
UNIT 1 VOCABULARY The Real number system.
Rational Numbers and Decimals
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic & Design Lecture 02.
Digital Electronics and Microprocessors
CS 101 – Sept. 4 Number representation Integer Unsigned √ Signed √
Chapter 2: Number Systems
Real Numbers System.
Types of Number © B. Taylor
Binary to Decimal Conversion
Review Mathematics Skills
Natural Numbers The first counting numbers Does NOT include zero
Objective Students will be able to compare and order fractions and decimals.
Binary, Hexadecimal, and Base 10.
Introduction To Number Systems
Presentation transcript:

OBJECTIVES You should be able to:  Convert binary fractions to a decimal  Convert decimal fractions to binary

Fixed Point Representation  We have previously dealt with converting between decimal and binary integers (whole numbers). We shall now deal with converting between decimal and binary fractions (real numbers).  Recapping : The number can be broken up into: DigitPlace ValueDecimal Fraction Decimal Value / 1 or 1 (integer) / / /

Binary Fraction  Binary fractions operate in a similar way. See the table below: BinaryPlace Value Decimal Fraction Decimal Value First bit after the point (.1) 2 -11/21/2.5 Second bit after the point (.01) 2 -21/41/4.25 Third bit after the point (.001) 2 -31/81/8.125 Fourth bit after the point (.0001) / Fifth bit after the point (.00001) /

Converting a binary fraction to decimal Using the value for each binary digit in a binary fraction we can find the decimal equivalent. eg. Convert the binary fraction to decimal. Starting from the left of the binary fraction, we record the digits down the table. TOTAL = BinaryWeightingValue 12 1 x 2 2 = x 2 1 = x 2 0 = x 2 -1 = x 2 -2 = x 2 -3 =.125

Exercise 1 Convert the following binary fractions to decimal:

Converting decimal fractions to binary  In order to convert a decimal fraction to binary the fraction must be multiplied by 2 after which the 0 or 1 produced to the left of the decimal point is recorded. This process is repeated until the fraction part becomes zero or the fraction part starts to repeat itself. eg. Convert the decimal fraction 0.75 to binary. STEP 1:0.75 x 2= 1.50 so the first bit is 1, with 0.50 remaining STEP 2:0.50 x2= 1.00 so the second bit is 1 (fraction part becomes zero) Therefore =.11 2 ( Counting bits starting from the top)

Converting decimal fractions to binary continued eg. Convert to binary (5 bit representation). STEP 1:.65 x 2= 1.30 so the first bit is 1, remainder is.30 STEP 2:.30 x 2= 0.60 so the second bit is 0, remainder is.60 STEP 3:.60 x 2= 1.20 so the third bit is 1, remainder is.20 STEP 4:.20 x 2= 0.40 so the fourth bit is 0, remainder is.40 STEP 5:.40 x 2= 0.80 so the fifth bit is 0, remainder is.80 STEP 6:.80 x 2= 1.60 so the sixth bit is 1, remainder is.60 STEP 7:.60 x 2= 1.20 so the seventh bit is 1, remainder is.20 The remainders begin to repeat in STEP 6 and STEP 7 therefore this pattern is repeating itself. The answer can be written as , ignoring any bits after the fifth bit (truncated) or as , rounding off the result.

Exercise 2 Convert the following decimal fractions to binary: