Number Systems & Binary How to count. How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math:

Slides:



Advertisements
Similar presentations
Scientific Notations - Operations Addition and Subtraction 1 st Convert one of the numbers so the exponents match 2 nd Add or subtract the decimal numbers.
Advertisements

Calculating in Other Bases
DATA REPRESENTATION CONVERSION.
Whole numbers: How to Dissect and Solve word problems
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:
Multiplying and Dividing Decimals
Binary Numbers Converting Decimal to Binary Binary to Decimal.
Simplifying Exponents
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Chapter One PROBLEM SOLVING WITH MATH Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
The Binary Number System Emily Beck and Susan Cantrell.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Decimals By: Sandy Denson.
Chapter 2.2 Scientific Notation. Expresses numbers in two parts: A number between 1 and 10 Ten raised to a power Examples: 2.32 x x
Number Systems Part 2 Numerical Overflow Right and Left Shifts Storage Methods Subtraction Ranges.
Tally, Babylonian, Roman And Hindu-Arabic
Place value and ordering
Computer System & Binary Review. Memory Model What memory is supposed to look like.
Pharmacology I Math Review.
Place Value and Multiplication
Place Value and dividing by 10, 100, etc
Computer Arithmetic and the Arithmetic Unit Lesson 2 - Ioan Despi.
Operations on Scientific Notation Addition and Subtraction 1. If they have the same exponent - add/subtract the number in front - keep the same exponent.
Operations with Scientific Notation. Addition and Subtraction Format Addition (N * 10 x ) + (M * 10 x ) = (N + M) * 10 x Subtraction (N * 10 y ) - (M.
CPIT 201 Introduction to Computing
Scientific Notation AP Chemistry August 11 th, 2015.
Partial Quotient Method In this division algorithm the children record on the right side of the problem. The first thing they do is divide. They ask themselves.
Renaming Fractions as Decimals The trick to this is to get the fraction in a base divisible by The denominator is in base 10. The zeros in the.
Beginning of the Year Math Review Houghton Mifflin ©2005.
294 ÷ 14. Look at the division problem.  The divisor, 14, can be divided into the first two digits of the dividend, 29, since you can get groups of 14.
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Unit 1 Review Order of Operations and Whole Numbers.
Scientific Notation. Scientific (Exponential) Notation A number is written as the product of two numbers, a coefficient and 10 raised to a power 36,000.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation.
Multiplying Decimals 6.NS.3 Fluently add, subtract, multiply and divide multi digit decimals using algorithms for each operation.
SCIENTIFIC NOTATION RULES. Rules for converting to Scientific Notation One non-zero number before the decimal One digit after the decimal If you are making.
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
Chapter 1 Whole Numbers Digit – number from 0-9
Everyday Math Algorithms
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
The four written methods Column addition To do Colum addition fist you must ad the units together 1+7= 8 Next add the tens 8+9= 17 You cant put a two.
Number systems. Binary system. Bits and bytes. Modern computers “speak” in a digital language composed of 2 digits. The machine language of modern computers.
Binary & Hex Review.
Introduction To Number Systems
Discrete Mathematics Numbering System.
Binary Positional Notation
Chapter 3 Decimals. Chapter 3 Decimals Learning Unit Objectives #3 Decimals Learning Unit Objectives Rounding Decimals; Fraction and Decimal Conversions.
Chapter R Prealgebra Review Decimal Notation.
ITE102 – Computer Programming (C++)
Number Systems Lab session 1 Xuan Guo.
Number Systems & Binary
Addition, Subtraction, Multiplication and Division
Decimal Operations.
SCIENTIFIC NOTATION.
Scientific Notation.
Whole Numbers: How to Dissect and Solve Problems
Powers of 10 Add 1 to the power Subtract 1 from the power
23 ×
Multiplying and Dividing in Scientific Notation
BASIC MATH.
Converting from Base-n to Base-10
Binary & Hex Review.
Math Mystery.
Sets and Subsets Cornell Notes
Introduction To Number Systems
§4.2, Number Bases in Positional Systems
Presentation transcript:

Number Systems & Binary How to count

How do we represent numbers? Early systems: – Actual count : ||||| = 5 – Roman numers : XI = 11 Hard to do math: MCXXIII + CLXXIV = ????

What we are used to – Digits that have different meaning based on place: = 1 * * * * * 1 = Place Value Systems ten thousands thousandshundredstensones 12059

Decimal Numbers Base 10 : Each place increases by a power of 10 ten thousands 10 4 thousands 10 3 hundreds 10 2 tens 10 1 ones

Why Base 10? Only one thing special about base 10: Other systems have been used: – Mayans : Base 20 – Babylonians : Base 60

Other Bases Base determines the multiplier from one column to next Base 20 = 1 * * * * * 1 = thousands 20 4 eight- thousands 20 3 four- hundreds 20 2 twentys 20 1 ones

Base 2 Base two – Only 1 and 0 – Places are powers of 2 = 1 * * * * * * 1 = = 45 thirty-twos 2 5 sixteens 2 4 eights 2 3 fours2 twos 2 1 ones

Other Bases Base also determines how many digits needed: Base 10 : 10 digits : 0-9 Base 2 : 2 digits : 0-1 Base 8 : 8 digits : 0-7

Notation Subscript used to indicate base:  101 in base 2 (numeric value of 5)  101 in base 10 (numeric value of 101)

More digits = bigger numbers 4 digits we can represent values : 8 digits can represent digits can represent n digits can represent 0 to (2 n -1)

Leading 0's Leading 0's do not matter: 101 = 0101 =

Leading 0's Leading 0's do not matter: 101 = 0101 =

Counting to ten in binary In binary you generally show leading 0's Values for 1-10 (decimal) in binary:

Binary -> Decimal with Table 1. Make a table like this one 2. Write in the binary number 3. Add up all the numbers from the top that have a 1 under them: =

Decimal -> Binary with Table 1. Make a table like this one 2. Say we are converting 83: Look for largest number that is smaller than our value Look for largest number that is smaller than our value

Decimal -> Binary with Table 1. Make a table like this one 2. Say we are converting 83: Look for largest number that is smaller than our value Look for largest number that is smaller than our value We have 1 of those (0 of anything bigger) We have 1 of those (0 of anything bigger) Subtract that from our number 83 – 64 = still have 19 to make Subtract that from our number 83 – 64 = still have 19 to make

Decimal -> Binary with Table 1. Make a table like this one 2. Say we are converting 83: Look for largest number that is smaller than our value Look for largest number that is smaller than our value We have 1 of those (0 of anything bigger) We have 1 of those (0 of anything bigger) Subtract that from our number 83 – 64 = still have 19 to make Subtract that from our number 83 – 64 = still have 19 to make Look for largest value smaller than that… Now have 19 – 16 = 3 left Look for largest value smaller than that… Now have 19 – 16 = 3 left

Decimal -> Binary with Table 1. Make a table like this one 2. Say we are converting 83: Look for largest number that is smaller than our value Look for largest number that is smaller than our value We have 1 of those (0 of anything bigger) We have 1 of those (0 of anything bigger) Subtract that from our number 83 – 64 = still have 19 to make Subtract that from our number 83 – 64 = still have 19 to make Look for largest value smaller than that… Now have 19 – 16 = 3 left Look for largest value smaller than that… Now have 19 – 16 = 3 left Continue… need a 2, have one left… Continue… need a 2, have one left…

Decimal -> Binary with Table 1. Make a table like this one 2. Say we are converting 83: means =

Conversion With Division/ Multiplication Binary works in powers of 2 Multiplying/dividing by 2 shifts digits

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ 2521

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ 25211

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ ÷ 2

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ ÷

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ ÷ ÷

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ ÷ ÷ ÷ ÷ ÷ ÷

Decimal -> Binary with Division Step 1: Start with a blank answer and the number your are converting Step 2: Divide your number by 2 to make a quotient and a remainder Step 3: Place your remainder on the left side of your answer Step 4: If your quotient is 0, you are done Otherwise, make the quotient your new number and go back to step 2 Convert 105 to binary: Number ÷ 2QR Answer 105 ÷ ÷ ÷ ÷ ÷ ÷ ÷ = 105

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer 11010

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2 + 1

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2 + 1

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2 + 0

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer * 2

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer _6 * 2 + 1

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer _13

Binary -> Decimal with Multiplication Step 1: Start with the number your are converting and the answer of 0 Step 2: Multiply your answer by 2 Step 3: Remove the leftmost digit of number and add it to your answer Step 4: If number has no more digits, you are done Otherwise, go back to step 2 Convert to decimal: Number Answer _ = 13