© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 4 Number Representation and Calculation
© 2010 Pearson Prentice Hall. All rights reserved Number Bases in Positional Systems
© 2010 Pearson Prentice Hall. All rights reserved. Objectives 1.Change numerals in bases other than ten to base ten. 2.Change base ten numerals to numerals in other bases. 3
© 2010 Pearson Prentice Hall. All rights reserved. Your Turn What is the decimal notation for the following Mayan numeral? 1
© 2010 Pearson Prentice Hall. All rights reserved. Binary (base 2) System Computer signals in terms of ‘yes’/’no’, ‘on’/’off’, ‘high voltage’/’low voltage’, 1/0. Computer data storage also in terms of ‘on’/’off’, ‘north pole’/’south pole’, 1/0. Binary system uses 2 symbols: 0, 1 E.g., two = 65 ten 1
© 2010 Pearson Prentice Hall. All rights reserved. Binary (base 2) System = 65
© 2010 Pearson Prentice Hall. All rights reserved. What Is the Binary Numeral in Decimal? = 90
© 2010 Pearson Prentice Hall. All rights reserved. Binary (base 2) System DecimalBinary
© 2010 Pearson Prentice Hall. All rights reserved. Your Turn Find the decimal notation for the following binary notation binary binary 1
© 2010 Pearson Prentice Hall. All rights reserved. Hexadecimal (base 16) Notation Uses 16 symbols: E.g., 2B hexadecimal = 43 ten A3 hexadecimal = 163 ten 1 Decimal Hexadec ABCDEF
© 2010 Pearson Prentice Hall. All rights reserved. Hexadecimal (base 16) Notation B 1 2x16+11x = 43 ten What is 2B hex in decimal notation?
© 2010 Pearson Prentice Hall. All rights reserved. Hexadecimal (base 16) Notation A3 1 10x16+3x1 = 163 ten What is A3 hex in decimal notation?
© 2010 Pearson Prentice Hall. All rights reserved. Your Turn Find the decimal numeral for the following hex numeral. 1.12A 2.FFF 1 Decimal Hexadec ABCDEF
© 2010 Pearson Prentice Hall. All rights reserved. How Is Binary Notation Related to Hex Notation? x16 +10x1 = 90 ten = 90 ten 5A
© 2010 Pearson Prentice Hall. All rights reserved. Adding Numbers in Binary Notation
© 2010 Pearson Prentice Hall. All rights reserved. Your Turn Find the sum of the following binaries. 2.e
© 2010 Pearson Prentice Hall. All rights reserved. Changing Numerals in Bases Other Than Ten to Base Ten The base of a positional numeration system refers to the number whose powers define the place values. The place values in a base five system are powers of five: …,5 4, 5 3, 5 2, 5 1, 1 =…,5 × 5 × 5 × 5, 5 × 5 × 5, 5 × 5, 5, 1 =…,625, 125, 25, 5, 1 17
© 2010 Pearson Prentice Hall. All rights reserved. Changing to Base Ten To change a numeral in a base other than ten to a base ten numeral, 1.Find the place value for each digit in the numeral. 2.Multiply each digit in the numeral by its respective place value. 3.Find the sum of the products in step 2. 18
© 2010 Pearson Prentice Hall. All rights reserved. Example 1: Converting to Base Ten Convert 4726 eight to base ten. Solution: The given base eight numeral has four places. From left to right, the place values are 8 3, 8 2, 8 1, and 1 Find the place value for each digit in the numeral: 19
© 2010 Pearson Prentice Hall. All rights reserved. Example 1 continued Multiply each digit in the numeral by its respective place value. 20
© 2010 Pearson Prentice Hall. All rights reserved. Changing Base Ten Numerals to Numerals in Other Bases We use division to determine how many groups of each place value are contained in a base ten numeral. 21
© 2010 Pearson Prentice Hall. All rights reserved. Example 5: Using Division to Convert from Base Ten to Base Eight Convert the base ten numeral 299 to a base eight numeral. Solution: The place values in base eight are …,8 3, 8 2,8 1,1, or …,512, 64, 8, 1. The place values that are less than 299 are 64, 8, and 1. We use division to show how many groups of each of these place values are contained in
© 2010 Pearson Prentice Hall. All rights reserved. Example 5 continued These divisions show that 299 can be expressed as 4 groups of 64, 5 groups of 8 and 3 ones: 23
© 2010 Pearson Prentice Hall. All rights reserved. Example 7: Using Divisions to Convert from Base Ten to Base Six Convert the base ten numeral 3444 to a base six numeral. Solution: The place values in base six are …6 5, 6 4, 6 3,6 2, 6 1, 1, or …7776, 1296, 216, 36, 6, 1. We use the powers of 6 that are less than 3444 and perform successive divisions by these powers. 24
© 2010 Pearson Prentice Hall. All rights reserved. Example 7 continued Using these four quotients and the final remainder, we can immediately write the answer. 25