Logic99 Sminar New
Logic99 Sminar New
report
‘ system number’
Prepared by : supervised by
Hawar safar mheden mr.aydil
juma
Saif masuod yaseen
Aisha tajaden
Helan Osman
Number systems:
binary, decimal,
hexadecimal and
octal.
Conversion between
various number
systems
Decimal numbers
What is hexadecimal?
Hexadecimal is a numbering system with
base 16. It can be used to represent
large numbers with fewer digits.
In this system there are 16 symbols or
possible digit values from 0 to 9,
followed by six alphabetic characters --
A, B, C, D, E and F.
These characters are used to represent
decimal values from 10 to 15 in single
bits
Decimal Binary Hexadecimal
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
Binary-to-Hexadecimal Conversion
Simply break the binary number into 4-bit
groups, starting at the right-most bit and
replace each 4-bit group with the equivalent
hexadecimal symbol as in the following
example.
Convert the binary number to hexadecimal:
1100101001010111
Solution:
1100 1010 0101 0111
C A 5 7 = CA57
Hexadecimal-to-Decimal
Conversion
One way to find the decimal equivalent of a
hexadecimal number is to first convert the
hexadecimal number to binary and then
convert from binary to decimal.
Convert the hexadecimal number 1C to
decimal:
1 C
0001 1100 = 2 + 2³ + 2² = 16 +8+4
= 28
Convert the decimal number 650 to
hexadecimal by repeated division by 16.
650 = 40.625 0.625 x 16 = 10 = A (LSD)
16
40 = 2.5 0.5 x 16 = 8 = 8
16
2 = 0.125 0.125 x 16 = 2 = 2 (MSD)
16
The hexadecimal number is 28A
Octal Numbers