Number Systems and Coding
Number Systems and Coding
AND CODE
NUMBER SYSTEMS
• There are several number systems that exist, the most
common are the following:
•Decimal 34510
•Binary 1001100102
•Octal 45728
•Hexadecimal 3AD67816
pi (hexadecimal) = 3.243F6A...
QUESTIONs/further study
• How Do You Convert Fractional Hexadecimal/Octal Back to Decimal ?
ANS: By applying the same rules i.e. multiply each digit with its weight
and sum them.
(EXAMINABLE)
BINARY ARITHMETIC
• Addition
• Subtraction
• Multiplication
• Division
BINARY ADDITION
• Four basic rules exist:
• 0 + 0 = 0 Sum of 0 with carry of 0
• 0 + 1 = 1 Sum of 1 with carry of 0
• 1 + 0 = 1 Sum of 1 with carry of 0
• 1 + 1 = 10 Sum of 0 with carry of 1
• When there is a carry of 1, it is transferred to the next column on the left
BINARY ADDITION
BINARY SUBTRACTION
BINARY MULTIPLICATION
BINARY DIVISION
There is no table, it is done by using multiplication and subtraction
BINARY TO HEXADECIMAL Conversion
and back
• To convert binary to hexadecimal break the binary number
to 4-bit groups, starting with the right-most bit and replace
each 4-bit group with the equivalent hexadecimal symbol.
• Example: a) 1100101001010111 = b) 1111110001011101001