Problem description:
Change 8 (decimal) into binary.
Convert 15 (decimal) to binary.
Convert 0.45 (decimal) to binary.
Convert 27.75 (decimal) to binary.
Change1011kloc-0/(binary) to decimal!
Analysis:
Using the rounding method, you can:
8/2=4+0
4/2=2+0
2/2= 1+0
1/2=0 remainder 1
So the binary of 8 is 100.
15/2=7 remainder 1
7/2=3 remainder 1
3/2= 1 remainder 1
1/2=0 remainder 1
So the binary of 15 is111.
0.45×2=0.9 Integer part 0 Decimal part 0.9
0.9×2= 1.8 integer part 1 decimal part 0.8
0.8×2= 1.6 integer part 1 decimal part 0.6
0.6×2= 1.2 integer part 1 decimal part 0.2
0.2×2=0.4 Integer part 0 Decimal part 0.4
0.4×2=0.8 Integer part 0 Decimal part 0.8
0.8×2= 1.6 integer part 1 decimal part 0.6
......
So the binary of 0.45 is about 0.0111001.
27/2= 13 1
13/2=6 remainder 1
6/2=3+0
3/2= 1 remainder 1
1/2=0 remainder 1
0.75×2= 1.5 integer part 1 decimal part 0.5
0.5×2= 1 integer part 1 decimal part 0
So the binary of 27.75 is1101.11.
10 1 10 1= 1×2^5+0×2^4+ 1×2^3+ 1×2^2+0×2^ 1+ 1×2^0
=32+0+8+4+0+ 1
=45
Therefore, the decimal system of1011is 45, where 2 5 means 2 to the fifth power (because the keyboard is difficult to type mathematical expressions, it can only be like this, and it can be changed when writing.