James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How does the binary number system work Converting between.

Slides:



Advertisements
Similar presentations
Chapter 1 Discovery 1 Evaluate each expression, and compare the results obtained in the left column with the corresponding results in the right column.
Advertisements

DATA REPRESENTATION CONVERSION.
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.
James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
James Tam Beyond Base 10: Non-decimal Based Number Systems What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
James Tam Number Representations You will learn about the binary number system and how subtractions are performed on the computer.
Copyright (c) 2004 Professor Keith W. Noe Number Systems & Codes Part I.
Factors, Fractions, and Exponents
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:
James Tam Non decimal math: doing math with non-base 10 number systems Addition, subtraction and multiplication with binary, octal and hexadecimal.
James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
Converting Binary to Octal
Binary Numbers.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
Real Numbers and the Decimal Number System
James Tam Number systems and logic What is the decimal based number system How does the binary number system work Converting between decimal and binary.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
Exponents An exponent is the number of times the base is multiplied by itself. Example 27 can also be written as 3 This means 3 X 3 X 3.
1. Scientific Notation Every positive number X can be written as:
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Number systems, Operations, and Codes
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Digital Electronics Octal & Hexadecimal Number Systems.
Copyright © 2012, 2009, 2005, 2002 Pearson Education, Inc. Chapter 3 Decimals.
Real Numbers Review #1. The numbers 4, 5, and 6 are called elements. S = {4, 5, 6} When we want to treat a collection of similar but distinct objects.
WHEN MULTIPLYING LIKE BASES, YOU ADD THE EXPONENTS FOR EXAMPLE:
Number Systems & Operations
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Phys 4330 Digital ElectronicsBinary System Digital circuits process signals that contain just two voltage levels or states, labeled logic "0" and logic.
Octal & Hexadecimal Number Systems
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.
Scientific Notation. From Scientific to Standard Notation Multiplying a number by 10 simply adds a zero. 10x10x10 is the same as 10 to the 3 rd power.
CHAPTER 3: Number Systems
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
Scientific Notation What is scientific Notation? Scientific notation is a way of expressing really big numbers or really small numbers. It.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
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.
Chapter 01 Numbers. Chapter 02 Base 10 example Decimal Number Place Place (place - 1) ===============================
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Introduction To Number Systems
Discrete Mathematics Numbering System.
Copyright (c) 2004 Professor Keith W. Noe
Apply the power of a product property to a monomial algebraic expression
COMPUTING FUNDAMENTALS
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Polynomial Long Division Review
Notes: Scientific Notation
CSCI206 - Computer Organization & Programming
Applying Exponent Rules: Scientific Notation
Multiplying & Dividing by Powers of Ten
Digital Electronics and Microprocessors
Chapter 2: Number Systems
Number Representation
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
§4.3, Computation in Positional Systems
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Decimal / Binary Conversions
Chapter 2 Number Systems.
Beyond Base 10: Non-decimal Based Number Systems
Scientific Notation EXPONENTS X10.
OBJECTIVES After reading this chapter, the reader should be able to :
§4.2, Number Bases in Positional Systems
Chapter 2 Number Systems.
Presentation transcript:

James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How does the binary number system work Converting between decimal and binary

James Tam What Is Decimal? Base unique symbols are used to represent values : The number of digits is based on…the number of digits

James Tam How Does Decimal Work? Etc. Column 1 counts through all 10 possible values For the next value, column 1 resets back to zero and column 2 increases by one Column 1 counts through all 10 possible values, column 2 remains unchanged For the next value, column 1 resets back to zero and column 2 increases by one

James Tam Decimal Base ten Employs ten unique symbols (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) Each digit can only take on the value from 0 – 9 Once a column has traversed all ten values then that column resets back to zero (as does it right hand neighbours) and the column to it’s immediate left increases by one.

James Tam Recall: Computers Don’t Do Decimal! Most parts of the computer work in a discrete state: On/off True/false Yes/No These two states can be modeled with the binary number system

James Tam Binary Base two Employs two unique symbols (0 and 1) Each digit can only take on the value 0 or the value 1 Once a column has traversed both values then that column resets back to zero (as does it right hand neighbours) and the column to it’s immediate left increases by one.

James Tam Counting In Binary Decimal valueBinary valueDecimal valueBinary value

James Tam Computers Don’t Do Decimal! 1) Convert the decimal values to binary 3) Convert the binary value to decimal 10 x 12 2) Add the two binary numbers

James Tam Converting From Decimal To Binary Split up the integer and the fractional portions 1)For the integer portion: a.Divide the integer portion of the decimal number by two. b.The remainder becomes the first integer digit of the binary number (immediately left of the decimal). c.The quotient becomes the new integer value. d.Divide the new integer value by the target base. e.The new remainder becomes the second integer digit of the binary number (second digit to the left of the decimal). f.Continue dividing until the quotient is less than two (i.e., it’s zero or one) and this quotient becomes the last integer digit of the binary number.

James Tam Converting From Decimal To Binary (2) 2)For the fractional portion: a.Multiply by two. b.The integer portion (if any) of the product becomes the first rational digit of the binary number (first digit to the right of the decimal). c.The rational portion of the product is then multiplied by two. d.The integer portion (if any) of the new product becomes the second rational digit of the binary number (second digit to the right of the decimal). e.Keep multiplying by two base until: a.either the resulting product equals zero, b.or you have the desired number of places of precision.

James Tam Converting From Decimal To Binary (3) e.g., 9 10 to ??? 2 9 / 2: q = 4 r = / 2: q =2 r = /2: q = 1 r = Stop dividing! (quotient is less than two) 1 1

James Tam Other Example Conversions: Decimal To Binary Decimal valueBinary value (calculate to a maximum of four fractional digits) 0.5??? 0.1??? 35.25???

James Tam Converting From Binary To Decimal Evaluate the expression: two raised to some exponent 1, multiply the resulting expression by the corresponding digit and sum the resulting products. Example: General formula: d7 d6 d5 d4. d3 d2 d1 b 1 The value of this exponent will be determined by the position of the digit (superscript) Number to be converted Position of digits Value in decimal = (digit7*2 3 ) + (digit6*2 2 ) + (digit5*2 1 ) + (digit4*2 0 ) + (digit3*2 -1 ) + (digit2*2 -2 ) + (digit1*2 -3 ) Number to be converted Value in decimal = (1x2 1 ) + (1x2 0 ) + (0x2- 1 ) = (1x2)+(1x1)+0 = Position of digits

James Tam Other Example Conversions: Binary To Decimal Binary valueDecimal value 0.1??? 0.01??? 10000??? 01111??? 10001???

James Tam You Should Now Know What is meant by a number base. How the binary works what role it plays in the computer. How to convert to/from binary and decimal.