1.18k likes | 1.69k Views
Number Systems. Decimal, Binary, and Hexadecimal. Positional Notation. Positional Notation. A positive number N can be written as:. Where:. Definitions. Where:. . = radix point r = radix or base of number system n = number of integer digits to the left of radix point
E N D
Number Systems Decimal, Binary, and Hexadecimal
Positional Notation A positive number N can be written as: Where:
Definitions Where: • . = radix point • r = radix or base of number system • n = number of integer digits to the left of radix point • m = number of fractional digits to the right of radix point • ai = integer digit i • aj = fractional digit j • an-1 = most significant digit • a -m = least significant digit
Examples • (1920)10 1920 • Base 10 or decimal number • Unless otherwise noted, assume base 10 • (10010101)2 100101012 • Base 2 or binary number • (95)16 9516 • Base 16 or Hex number
Online HW Assignments • (1920)10 1920 • Base 10 or decimal number • (10010101)2 %10010101 • Base 2 or binary number • (95)16 $95 • Base 16 or Hex number
Polynomial Notation A positive number N can also be written as: Example:
Decimal Number System • Radix or Base 10 • Digits: 0, 1,2,3,4,5,6,7,8,9 • Example: 104510 • First 17 positive integers • 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
Binary Number System • Radix or Base 2 • Digits: 0, 1 • Example: 10101102 • First 17 positive integers • 0,1,10,11,100,101,110,111,1000,1001,1010,1011,1100,1101,1110,1111,10000
Hexadecimal Number System • Radix or Base 16 • Digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F • Example: EF5616 • First 17 positive integers • 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10
Decimal Arithmetic Addition Subtraction Multiplication Division
Solution Add the following decimal numbers 1 1 199 + 73 2 7 2
Solution Subtract the following decimal numbers 1 123 - 77 6
Solution Subtract the following decimal numbers 1 1 113 - 77 4 6
Solution Subtract the following decimal numbers 1 1 013 - 77 0 4 6
Partial Products Solution Multiply the following decimal numbers 72 x 23 Multiplicand Multiplier 216 1440 1656 Product
ExampleDivide the following decimal numbers 0 7 Quotient 3 23 Divisor Dividend 0 23 21 2 Remainder
Binary Addition • Single Bit Addition Table 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10 Note “carry”
Example Add the following binary numbers 1 1 0 1 +0 1 1 1
Solution: Add the following binary numbers 1 1 1 1 0 1 +0 1 1 1 1 0 1 0 0
Binary Subtraction • Single Bit Subtraction Table 0 - 0 = 0 1 - 0 = 1 1 - 1 = 0 0 - 1 = 1 with a “borrow”
ExampleSubtract the following binary numbers 1 1 0 1 - 0 1 1 1
1 1 1 1 1 0 1 0 0 0 1 1 1 0 0 1 Solution: Subtract the following binary numbers 1 1 0 1 - 0 1 1 1 0 1 1 0
Collaborative Learning Learning methodology in which students are not only responsible for their own learning but for the learning of other members of the group.
Think - Pair - Share (TPS) Quizzes • Think – Pair – Share • Think individually for one time units • Pair with partner for two time units • Share with group for one and half time units • Report results
TPS Quiz THINK One Unit (e.g. 30 Seconds)
TPS Quiz PAIR Two Units (e.g. 60 Seconds)
TPS Quiz SHARE 1.5 units (e.g. 45 Seconds)
TPS QUIZ Report
TPS Quiz #1-2-3
Binary Multiplication • Single Bit Multiplication Table
Binary Multiplication • Single Bit Multiplication Table 0 x 0 = 0 0 x 1 = 0 1 x 0 = 0 1 x 1 = 1
ExampleMultiply the following binary numbers 1 1 0 1 x 0 1 1 1
SolutionMultiply the following binary numbers 1 1 0 1 x 0 1 1 1 1 1 0 1 1 1 0 1 0 Partial Products 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1
Binary Division • Single Bit Division Table 0 / 0 = N/A 0 / 1 = 0 1 / 0 = N/A 1 / 1 = 1
ExampleDivide the following binary numbers 1 1 1 1 1 0 1
1 1 1 1 1 0 1 SolutionDivide the following binary numbers 1 0 0 0 Quotient Dividend Divisor 0 1 1 0 0 1 1 0 0 0 0 1 1 0 1 1 1 1 Remainder 1 1 0
Solution Add the following hexadecimal numbers 1 AF + 1B C A