Discreet Mathematic
Discreet Mathematic
• The natural numbers (also called the positive integers) are the
numbers 1, 2, 3, 4, ...
• The rational numbers are all the numbers that can be expressed
in the form m/n where m and n are integers and n is not zero.
Binary Number System
• Starting at the point and moving to the left, we have the units digit
(1 = 20), the twos digit (2 = 21), the fours digit (4 = 22), the eights di
git, and so on.
• To the right of the point are the halves digit, the quarters digit, the
eighths digit, and so on.
Converting Binary number to Decimal equivalent
• A binary number can be evaluated (and hence converted to
decimal) by writing it in expanded form:
• Example:
1101.012 = 1 X 23 + 1 X 22 + 0 X 21 + 1 X 20 + 0 X 2-1 + 1 X 2-2
= 8 + 4 + 1 + 0.25
= 13.25
• Converting Binary Fraction to Decimal equivalent
.0101 = ? ?
• Think about the bases other than 2 for expanded form.
Converting Decimal number to Binary equivalent
(Leaving out the last step, 1 div 2 = 0 and 1 mod 2 = 1, is a common mistake.
The algorithm does not terminate until the quotient is zero.)
Note: Algorithm will be covered in week 2 Lecture class.
Converting Fraction to Binary equivalent
• Example: 0.37510 = (0.011)2 Integer Part (read from the top down)
0.375 * 2 = 0.750 0
0.75 * 2 = 1.50 1
0.50 * 2 = 1.00 1
Class Activity
1. Convert 11100101.010112
to its decimal number
• Example:
Division of Binary Numbers
• Example:
Class Activity