When decimal number is converted into binary number, the integer part and decimal part of decimal number are converted separately and then merged because of the different conversion methods.
Decimal integers are converted into binary integers. The decimal integer is converted into a binary integer by the method of "dividing by 2 to get the remainder and arranging in reverse order". The specific method is: divide the decimal integer by 2 to get a quotient and remainder; Divide the quotient by 2 to get a quotient and a remainder, and so on until the quotient is less than 1. Then, the first obtained remainder is used as the low-order significant bit of the binary number, and the last obtained remainder is used as the high-order significant bit of the binary number, which are arranged in turn.
The method of converting decimal fraction into binary fraction is "rounding by 2, in order". The specific method is: multiply the decimal part by 2 to get the product, take out the integer part of the product, multiply the remaining decimal part by 2 to get another product, take out the integer part of the product, and so on until the decimal part of the product is zero, at which time 0 or 1 is the last bit of the binary.
In the computer, this method of dividing by two to get the remainder and multiplying by two is automatically done inside the computer, so when we use the computer, we don't feel that it is performing binary calculation.
I hope it can help you solve the problem.