Chapter 1-Data Representation
Chapter 1-Data Representation
Denary to Binary:
Show the denary number in the binary register.
Binary to Hexadecimal:
Starting from the right and moving left, split the binary number into
groups of 4 bits. If the last group
has less than 4 bits, then simply
fill in with 0s from the left. Take
each group of 4 bits and convert
it into the equivalent
hexadecimal digit.
Hexadecimal to Binary:
Simply take each hexadecimal
digit and write down the 4-bit
code which corresponds to the
digit.
Hexadecimal to Denary:
Value headings of each hexadecimal digit; that is, 4096, 256, 16
and 1. Take each of the hexadecimal digits and multiply it by the
heading values. Add all the resultant totals together to give the
denary number.
Denary to Hexadecimal:
Successive division by 16 until the value “0” is reached.
Q. What is 2’s complement?
It is a method of representing negative numbers in binary.
When applied to an 8-bit register, the left-most bit (most significant
bit) is given the value -128.
The left-most bit always determines the sign of the binary number.
1. 1-value in the left most bit indicates a negative number.
2. 0-value in the left most bit indicates a positive number.
Method
1.Write 79 in binary
2.Invert the binary digits
3.Add 1 to the inverted number.
4.Thus giving -79
Use these: