COA Lab
COA Lab
The value of a binary number is based on the presence of 1 bits and their
positional value.
So the value of the given binary number is: 1 + 2 + 4 + 8 +16 + 32 + 64 +
128 = 255, which is same as 2^8 - 1.
The Hexadecimal Number System
• Hexadecimal number system uses base 16.
• The digits range from 0 to 15.
• By convention, the letters A through F is used to represent the
hexadecimal digits corresponding to decimal values 10 through 15.
• Main use of hexadecimal numbers in computing is for abbreviating
lengthy binary representations.
• Basically hexadecimal number system represents a binary data by
dividing each byte in half and expressing the value of each half-byte.
•
The Hexadecimal Number System
• To convert a binary number to its hexadecimal equivalent, break it into
groups of 4 consecutive groups each, starting from the right, and write
those groups over the corresponding digits of the hexadecimal number.
Example: Binary number 1000 1100 1101 0001 is equivalent to
hexadecimal is 8CD1