Welcome Guest.

# Decimal to binary problem

Asked by: Thomas Jackson 227 views IT February 10, 2019

How do you convert decimal to binary? For example, the hexadecimal abc to binary is to convert them separately and together, a=1010, b=1011, c=1100, which is 101010111100 together.

How did the 128 turn into binary turn? Is it also opened and turned? Or do the numbers have a corresponding binary value?

1. +3Votes  The most common algorithm for decimal to binary is to divide it 2 continuously until the result is 0, and then connect each remainder from back to front, which is the result, such as your 128

128 / 2  =  64 —   0
64 / 2  =  32 —   0
32 / 2  =  16 —   0
16 / 2  =   8 —   0
8 / 2  =   4 —   0
4 / 2  = &nbsp 2 —   0
2 / 2  =   1 —   0
1 / 2  =   0 —   1

The result is

10000000

Answer: You can use this method for decimal conversion, but the divisor is changed

2. +4Votes  12 (decimal) = 1100 (binary) Convert decimal integers to binary integers: Convert decimal integers to binary integers using " divide by 2, and reverse order " The specific method is: divide the decimal integer by 2, you can get a quotient and remainder; then use 2 to remove the quotient, and then get a quotient and remainder, and then proceed until the quotient is 0, and then use the first remainder as the binary number. The lower significant bit, the resulting remainder is used as the upper significant digit of the binary number, in order. Specific practice: 12/2=6 remaining 0 6/2=3 remaining 0 3/2=1 remaining 1 1/2=0 remaining 1 12 (decimal) = 1100 (binary)

3. +1Votes  Conversion得  1 0010 1000

Other numbers are similar

4. +8Votes  [Calculator][View][Programmer] Click [ Decimal] Enter your number before 0-9 (as shown below)

After entering a good number, click [Binary] to convert to a binary number (as shown below)