Basic It Skills (IST50US) : Prepared by Ms V. Lazarus - 2020
Basic It Skills (IST50US) : Prepared by Ms V. Lazarus - 2020
(IST50US)
– Binary Base 2
– Octal Base 8
– Hexadecimal Base 16
A numbering system assigns meaning to the
position of the numeric symbols.
Hexadecimal: 1D63A7A
000 0 20 1
001 1 21 2
010 2 22 4
011 3 23 8
100 4 24 16
101 5 25 32
110 6 26 64
111 7 27 128
Characteristics of Numbering Systems
Hexadecimal: 1D63A7A
1 0 0 0 0 1 12
Binary to Decimal Conversion
• The easiest method for converting a binary
number to its decimal equivalent is to use the
Multiplication Algorithm
• Multiply the binary digits by increasing powers
of two, starting from the right
• Then, to find the decimal number equivalent,
sum those products
Multiplication Algorithm
Convert (10101101)2 to its decimal equivalent:
Binary 1 0 1 0 1 1 0 1
Positional Values
x x x x x x x x
27 26 25 24 23 2 2 21 20
Products 128 + 32 + 8 + 4 + 1
17310
Octal Number System
• Also known as the Base 8 System
• Uses digits 0 - 7
• Readily converts to binary
• Groups of three (binary) digits can be used to
represent each octal digit
• Also uses multiplication and division
algorithms for conversion to and from base 10
Hexadecimal Number System
• Base 16 system
• Uses digits 0-9 &
letters A,B,C,D,E,F
• Groups of four bits
represent each
base 16 digit
Decimal to Hexadecimal Conversion
830 / 16 = 51 R14
51 / 16 = 3 R3
3 / 16 = 0 R3 = E in Hex
33E16
Hexadecimal to Decimal Conversion
Hex Digits
3 B 4 F
x x x x
Positional Values
163 162 161 160
Products 12288 +2816 + 64 +15
15,18310
Binary to Hexadecimal Conversion
11
1 5 1
5 1
6 12
4 14 5 5 99
5 19 10 11 111
Addition (binary)
1
0 1 0 1
0 0 1 1
0 1 1 10
Addition (binary)
1 11 1
011 01
01011
11000
Addition (binary)
1
0 1 0 1
0 0 1 1
0 1 1 10
a) 1 0 1 0 + 1 0
b) 1 0 + 1 1 0
c) 1 0 1 1 + 1 0 1 0
d) 1 1 1 1 + 1 0 1
e) 1 0 1 1 1 0 + 1 1 1 0
f) 1 1 0 1 + 1 0 1
Binary Subtraction
• Here are too four simple steps to keep in
memory
• 0–0=0
• 0 – 1 = 1, borrow 1 from the next more
significant bit
• 1–0=1
• 1–1=0
Binary Subtraction examples
13
11
13
130
143
Multiplication of Binary Numbers
1101
1011
1101
11010
1101000
10001111
Multiplication of Binary Numbers examples
• 10111 by 1101