-
First of all, you need to convert the number into two parts: an integer and a decimal. Integer part: divide by two and take the remainder inverted:
30 2 0 0 to 15
15 2 1 7
7 2 1 3
3 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 2 1 0
All remainders are inverted to binary numbers, so (30)10 (11110)2;
The decimal part: multiply by two to take the whole number: get, so (.
Therefore, (divide by two and take the remainder inverted rule: divide the decimal integer by two continuously, first get the remainder to rank at the bottom, and then get the remainder to rank at the top.)
Multiply two by the whole method: multiply by 2 constantly, the integer is obtained first as the high position, and then the bottom is obtained.
-
The integer part is divided by 2 toss and turns until the result is 0
Write the remainder in reverse order from bottom to top.
30 2 = 15 remainder 0
15 2 = 7 remainder 1
7 2 = 3 remainder 1
3 2 = 1 remaining 1
1 2 = 0 remainder 1
i.e. 30d = 11110b
Multiply the decimal by 2 and round it up, and the decimal part continues to multiply by 2 and round it until the decimal part is 0, and then arrange the integers in order.
Round up to 1, the decimal part is 0, and the end.
i.e. so. =
-
Binary numbers. is 11001 (remainder.)
Count down to it).
-
The process of converting decimal numbers to binary numbers of the Lingkai regiment is as follows:
1.Convert the integer part 19 to a binary number to get 10011 (i.e., the remainder of 19 divided by 2 is 1, 1, 0, 0, 1, and 10011 in reverse order).
2.Multiply the decimal part by 2 to get. Convert the orange part of the whole ruler to a binary number of 0 to get 0.
3.Multiply the remaining fractional by 2 to get 1. Convert the integer part 1 of 1 to a binary number to get a Sun cavity 1.
4.Continue to convert the remaining fractional part of 0 as described above, and multiply by 2 until the decimal becomes 0 or the desired accuracy is reached. The final result is a binary number.
Therefore, the binary representation of the decimal number as.
-
The process of converting a decimal belt number to a binary number is as follows:
Convert 19 and respectively to binary numbers.
The number of the two brothers of 19 is 10011, where 1 2 4 + 0 2 3 + 0 2 2 2 + 1 2 1 + 1 2 0 = 19.
The binary number can be calculated by multiplying by 2 and rounding it off, that is, the integer part is 0, and then the decimal part is continued to be multiplied by 2 to obtain, the integer part is 1, and then the decimal part is continued to be multiplied by 2 to obtain, and the decimal part is 0, and the calculation is stopped. So the binary number is.
Merge the binary numbers of 19 and .
Merge the binary number 10011 and the binary number of 19 to get. Dust head.
So, the binary number of the decimal number is.
-
Summary. Convert decimal to binary, divide the decimal integer by two to get a quotient and remainder, and then use two to remove the quotient and get a quotient and remainder, and so on until the quotient is less than one, and then take the remainder obtained first as the low significant bit of binary, and then get the remainder as the high significant bit of the binary number, and arrange them in turn, and the decimal part is rounded by 2. The method of converting the binary part of the integer part to decimal is generally from right to left, and each number of the binary is multiplied by the corresponding power of 2 from right to left, and if it is a decimal part, it is from left to right Each number is multiplied by the corresponding power of two.
Okay? Thank you for your answer.
Convert decimal to binary, divide the decimal integer by two to get a quotient and remainder, and then use two to remove the quotient and get a quotient and remainder, and so on until the quotient is less than one cover standby, and then the remainder obtained first is taken as the low significant bit of binary, and the cosams obtained later are counted as the high significant digits of the binary number, arranged in turn, and the decimal part is rounded by 2. The method of converting the binary part of the integer part to decimal is generally from right to left with each number in the binary system to multiply it by the corresponding power of 2, if it is a decimal part, it is from left to right Each number is multiplied by the corresponding power of two.
-
Binary is converted to decimal system.
The binary number 00111 has a bit weight from low to high power, which is 2 to the power of 0, to the power of 1, to the power of 2, to the power of 3, to the power of 4, and to the power of 16.
Once you understand the cardinality and bit weights of binary counting, you can perform the number system conversion. How do I convert 00111 to a decimal count? The conversion is as simple as multiplying each binary number from high to low bit, multiplying each digit weight, and summing it.
00111 (binary) = 0 * 2 (5-1) +0 * 2 (4-1) +1 * 2 (3-1) +1 * 2 (2-1) +1 * 2 (1-1).
7 (decimal).
2. Convert decimal to binary.
The conversion of decimal integers to binary integers can be done by "dividing by 2 to take the remainder, and output in reverse order", the specific conversion process is to remove a decimal number with 2 to get the quotient and remainder, and then use 2 to remove the quotient, and then get the quotient and remainder, and the cycle repeats until the quotient is 0. If the decimal decimal is converted to a binary decimal place, "multiply by 2 to round up, and output sequentially". The conversion process is shown in the following figure:
3. Conversion between binary and octal.
Binary to octal: take the three-in-one method, that is, from the decimal point of the binary as the dividing point, to the left (to the right) every three digits into one, and then add the three binaries according to the weight, and then, in order, the position of the decimal point remains the same, and the number obtained is the octal number we seek.
If you take three digits to the left (right) and get the highest (lowest) digit, if you can't make up three digits, you can add 0 to the leftmost (rightmost) digit of the decimal point, that is, the highest digit (lowest digit) of the whole number, to make up three digits.
4. Octademal to binary: take a three-point method, that is, decompose a one-digit octal number into a three-digit binary number, and use the three-digit binary to add the weight to make up the octal number, and the decimal point position remains the same.
5. Conversion between binary and hexadecimal.
Binary to hexadecimal: take the four-in-one method, that is, from the decimal point of the binary as the demarcation point, to the left (to the right) every four digits into a bit, and then add the four binaries according to the weight, and then, in order, the position of the decimal point remains the same, and the number obtained is the hexadecimal number we seek.
If you take four digits to the left (right) and get the highest (lowest) digit, if you can't make up four digits, you can add 0 to the leftmost (rightmost) digit of the decimal point, that is, the highest digit (lowest digit) of the whole number, to make up four digits.
6. Hexadecimal to binary: take a four-point method, that is, decompose a hexadecimal number into a four-digit binary number, and use the four-digit binary to add the weight to make up the hexadecimal number, and the decimal place remains the same.
7. Between decimal and octal, between decimal and hexadecimal, the decimal system is first converted to binary, and then converted to octal or hexadecimal.
-
Answer]: Binary.
Divide the decimal number 386 by 2, and the remainder is reversed to become a binary number, i.e., the base of the cluster is 110000010(2).
Eight into the restructuring of the system.
In the same way, divide 386 in the decimal system by 8, and the remainder is reversed to become the octal number, which is 602 (8).
Hexadecimal. In the same way, divide the decimal number 386 by 16, and the remainder is reversed to become the hexadecimal number, which is 182 (16).
Convert decimal integers to binary numbers.
The divide by 2 reverse remainder method is adopted: >>>More
If it's a method, I can give you a natural language description of how the decimal integer part n can be converted to binary as follows: >>>More
1.Binary 1000 is replaced by 16.
With the 8421 conversion method, that is, from left to right, 8*1+4*0+2*0+1*0=0x8, this is the universal conversion method for all hexadecimal to binary, bit-to-bit alignment conversion, multiply by 8421 respectively, and then add up. If the binary number. >>>More
dim a as string 'Define variable a as a string.
dec_to_hex = "" 'The variable dec to hex is stored in decimal to hexadecimal is the result, and the initial value is an empty string do while dec > 0'If the decimal number dec to be converted is greater than 0, it goes into a loop. >>>More
First convert to binary (except 16 remainder), then convert binary to decimal.