Microcomputer Quiz: Name: Emon Abdul Awal (艾沂蒙) Subject: Microcomputer (Quiz) Student ID: 188801232
Microcomputer Quiz: Name: Emon Abdul Awal (艾沂蒙) Subject: Microcomputer (Quiz) Student ID: 188801232
To convert binary number 1101.01, we convert its integral and fractional part
individually and then add them to get the equivalent decimal number, as below:
first convert the integral part 1101 to decimal number (Don't forget that start from
one’s place to so on...)
Decimal equivalent of "1" = 1 × 2^0 = 1
Decimal equivalent of "0" = 0 × 2^1 = 0
Decimal equivalent of "1" = 1 × 2^2 = 4
Decimal equivalent of "1" = 1 × 2^3 = 8
Decimal equivalent of "1101" = 8+4+0+1
1101 = 13
Now convert the fractional part 0.01 to decimal form (Don't forget that start from
tenths place to so on):
Decimal equivalent of "0" = 0 × 2^-1 = 0
Decimal equivalent of "1" = 1 × 2^-2 = 0.25
Decimal equivalent of "0.01" =0 +0.25
0.01 = 0.25
Here is the final answer, The binary number 1101.01 converted to decimal is therefore
equal to:
=1101.012
=1310 +0.2510
=13.2510
***To convert binary number 111.0001, we convert its integral and fractional part
individually and then add them to get the equivalent decimal number, as below:
First convert the integral part 111 to decimal number (Don't forget that start
from one’s place to so on...)
Decimal equivalent of "1" = 1 × 2^0 = 1
Decimal equivalent of "1" = 1 × 2^1 = 2
Decimal equivalent of "1" = 1 × 2^2 = 4
Decimal equivalent of "111" = 4+2+1
111 = 7
Then, convert the fractional part 0.0001 to decimal form (Don't forget that start
from tenths place to so on):
Here is the final answer, The binary number 111.0001 converted to decimal is
therefore equal to:
= 111.00012
= 710 + 0.062510
= 7.062510
Result of converting:
A3.316 = 163.187510
* FAB.316 = 4011.187510
10710 =11010112
9210 =10111002
Decimal to Hexadecimal
1) To convert decimal number 107 to hexadecimal:
Answer:
10710 =6B16
• Convert the decimal numbers -12 and +32 to signed 8-bit binary
numbers.
1) 32
32
Since this is a positive number. we can directly convert this into binary.
Divide 32 successively by 2 until the quotient is 0
> 32/2 = 16, remainder is 0
> 16/2 = 8, remainder is 0
> 8/2 = 4, remainder is 0
> 4/2 = 2, remainder is 0
> 2/2 = 1, remainder is 0
> 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 100000
So, 32 of decimal is 100000 in binary
so, 32 in 2's complement binary is 00100000
Answer: 00100000
2) -12
Packed BCD form: Allocating every decimal number into 8-bit binary equivalent
is called as packed BCD form.
Unpacked BCD form: allocating every element decimal number into 4-bit binary
equivalent, nibble is included if needed. it is known as the Unpacked BCD form.
(1) 102
(2) 44