-
It can be like this: for example, multiply it by the binary number of the base.
After multiplying by 2, take the integer part 1 as the first term (decile) of the binary decimal place, and multiply the decimal part by 2 to obtain, take the integer part as the second decimal place (percentile).
0, after multiplying its decimal part by 2, take its integer part as the third place (thousandth place) of the binary decimal place 1, take its decimal part and multiply it by 2......And so on until the value is 0 or a circular decimal is formed.
then stop.
-
Multiply by 2 and take the carry digit:
0 --- 1
0, 1, 0, 1, 1, 1, 1, 1, 0
0, 0, 0, 1
0, 1, 0, 0
0, 1, 1, 1
Enter 1 to start another cycle:
The binary is, 0111, 0000, 1010, 11....
It can also be converted into a sum of 1 2 n:
-
Calculation after decimal point: Rounded up to the nearest whole number.
Start the cycle. 1001 is the Cycle Festival.
Binary small loss socks to decimal system:
For example, the more you calculate, the more you will scatter and get closer.
-
The decimal part. , take 0
Take 1, take 0 take 1, take 0
Take 1, take 0 take 1, take 0
Take 1, take 0 take 1, take 0
Take 0, take 1, take 1
-
To be converted from decimal to binary is, adopted"Multiply by 2 and round up, in order"method to calculate.
The specific calculation process is set up: round the bucket macro 0, round 1, round 0, round 1, round 1, round 0, round 0, round 1, round 1....It can be found that the loop will be kept in the future, retaining 9-bit precision, getting.
Extended Materials. The process of converting decimal to binary:
Multiply the decimal part of the product by 2 times the decimal number to obtain the product, take out the integer part of the product, and then multiply the remaining decimal part by 2 to get another product, and then slowly take out the integer part of the product, and so on until the decimal part of the product is zero or the required accuracy is reached. Finally, the obtained integers can be sorted forward.
-
The decimal part.
Take 0, take 1 take 0, take 0
Take 1, take 1 take 0, take 0
Take 1, take 1 take 0, take 0
Take 1, take 1 take 0, take 0
-
Decimal to binary.
Adoption"Multiply by 2 and round up, in order"Law. The specific method is: use 2 times decimal decimal places, you can get the product, take out the integer part of the product, and then use 2 times the remaining decimal part to get another product, and then take out the integer part of the product, and so on, until the decimal part of the product is zero, at this time 0 or 1 is the last digit of the binary.
or until the required accuracy is achieved.
Then arrange the integer parts in order, the integer taken first is used as the high significant digit of the binary decimal place, and the integer taken later is taken as the low significant digit. 01
001 So, the conversion to binary is: where 1001 is the cyclic knot) binary to decimal.
-
Calculated after decimal point:
Rounded digits. Start the cycle.
1001 is the Cycle Festival.
Binary decimal to decimal system:
For example=2 -2+2 -5+2 -6+2 -9+2 10=
The more calculations, the closer you get.
-
3 is 11 in binary, and it should be.
-
。The conversion of decimal Shanbi 100 to binary is 1100100, and the conversion of decimal integers to binary integers adopts the method of "dividing the modulo only punching 2 and taking the remainder, and arranging them in reverse order", so it is equal to the binary annihilation system.
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
Landlord, you just forgot to close it, and your program doesn't need to be overhauled. >>>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
Do you know how to do the math?If I don't understand, I can't help it.
The above statement is wrong.
How to calculate the binary of 1100 111. >>>More