Decimal / Binary Conversions

Slides:



Advertisements
Similar presentations
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.
Advertisements

DATA REPRESENTATION CONVERSION.
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.
Level ISA3: Information Representation
Chapter 4.2 Binary numbers: Arithmetic
Number System Conversions Lecture L2.2 Section 2.3.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
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-
1.Be able to divide polynomials 2.Be able to simplify expressions involving powers of monomials by applying the division properties of powers.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Numbering Systems CS208.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
Write and compute expressions with powers.
Number Systems Spring Semester 2013Programming and Data Structure1.
Base: the number that is multiplied Power: the number that is expressed as the exponent Exponent: tell how many times the base is used as a factor Standard.
1. Scientific Notation Every positive number X can be written as:
Computer Systems Architecture Copyright © Genetic Computer School 2008 CSA 1- 0 Lesson 1 Number System.
Number systems, Operations, and Codes
Introduction to Numerical Analysis I MATH/CMPSC 455 Binary Numbers.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Number Base Conversions
DIVISIBILITY RULES.
Divisibility Rules and Finding Factors
Copyright © 2012, 2009, 2005, 2002 Pearson Education, Inc. Chapter 3 Decimals.
AEEE2031 Data Representation and Numbering Systems.
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.
Number Systems & Operations
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Slide Copyright © 2009 Pearson Education, Inc. 5.1 Number Theory.
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.
Unit 1 Test Review. 1-2 Exponents 1) Write the expression in exponential form 2 x 2 x 2 x 2 x 2 2) Find the value of.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
Some basic concepts underlying computer archi­tecture
Computer Maintenance Numbering Systems Trade & Industrial Education
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
CSCI 198: Lecture 4: Data Representation
CHAPTER 1 : INTRODUCTION
CSCI 161: Lecture 4: Data Representation
Convert Decimal to Binary
CSE 102 Introduction to Computer Engineering
Tools of Web Development 1: Module A: Numbering Systems
Binary Number System And Conversion
Number System conversions
Number Systems.
University of Gujrat Department of Computer Science
Dividing Monomials.
CSCI206 - Computer Organization & Programming
Overview Digital Systems and Computer Systems
Binary Number System And Conversion
Numbering System TODAY AND TOMORROW 11th Edition
Digital Electronics and Microprocessors
Chapter 2: Number Systems
Section 4.3 Scientific Notation.
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Numeral systems (radix)
Binary to Decimal Conversion
Chapter 2 Number Systems.
Dividing Monomials.
Chapter 2 Number Systems.
Binary Number System And Conversion
Introduction To Number Systems
COE 202: Digital Logic Design Number Systems Part 2
Chapter 2 Number Systems.
Presentation transcript:

Decimal / Binary Conversions By Dr. JJ Shepherd

Number Systems A set of symbols to represent values Each number system has a set of symbols (digits or characters) representing a value Each system has a base which represents the base symbols in the system The symbol’s position indicates its order of magnitude Values are the summation of symbols multiplied by their base to the power of an exponent corresponding to their position

Decimal System Most commonly used system It is Base 10 Symbols are {0,1,2,3,4,5,6,7,8,9} Each value in this system can be expressed as a sum of each value multiplied by an exponent of 10 Example: 365 = 3x102 + 6x101 + 5x100

Binary System Commonly used in computing It is Base 2 Symbols are {0,1} Each value in this system can be expressed as a sum of each value multiplied by an exponent of 2 Example: 101 = 1x22 + 0x21 + 1x20

Binary to Decimal Using the same idea from the previous slide, expand the number by its factors Then sum together that expression into the decimal system Example 101 = 1x22 + 0x21 + 1x20 = 5 1101 = 1x23 + 1x22 + 0x21 + 1x20 = 13

Decimal to Binary 11 / 2 = 5 R 1 5 / 2 = 2 R 1 2 / 2 = 1 R 0 Going in the other direction requires division of the base Integer divide the value by 2 Record the remainder Repeat this until the value is 0 Reversing the remainders give the binary number Examples 11 / 2 = 5 R 1 5 / 2 = 2 R 1 2 / 2 = 1 R 0 1 / 2 = 0 R 1 HALT! 11 = 1011 13 / 2 = 6 R 1 6 / 2 = 3 R 0 3 / 2 = 1 R 1 1 / 2 = 0 R 1 HALT! 13 = 1101 365 / 2 = 182 R 1 182 / 2 = 91 R 0 91 / 2 = 45 R 1 45 / 2 = 22 R 1 22/ 2 = 11 R 0 11 / 2 = 5 R 1 5 / 2 = 2 R 1 2 / 2 = 1 R 0 1 / 2 = 0 R 1 HALT! 365 = 101101101 32 / 2 = 16 R 0 16 / 2 = 8 R 0 8 / 2 = 4 R 0 4 / 2 = 2 R 0 2 / 2 = 1 R 0 1 / 2 = 0 R 1 HALT! 32 = 100000 42 / 2 = 21 R 0 21 / 2 = 10 R 1 10 / 2 = 5 R 0 5 / 2 = 2 R 1 2 / 2 = 1 R 0 1 / 2 = 0 R 1 HALT! 32 = 101010