answersLogoWhite

0


Best Answer

Binary to Decimal

Working from the least-significant bit, the positional values are 1, 2, 4, 8, 16, 32, 64 and 128 (each more significant bit doubles the value of the preceding bit). If the corresponding bit is set, add that value to an accumulator initialised to zero.

Decimal to Binary

Repeatedly divide the decimal value by 2 and take the remainder (which can only be 0 or 1). Each division determines the value of the next most significant bit, starting with the least significant bit.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

Binary code is a code used to instruct computers what to do. It is not something that converts to English in a direct fashion, although you can say in English what the binary code is commanding - if you really understand the binary.

There are code convertors on line that can provide some basic interpretation. However, they cannot always 100% deal with all binary code. These will allow you to cut and past in code and convert to ASCII if they find an equated code

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Add enough zeroes to the start of the binary string to make the length a multiple of 4.

Translate four characters at a time to a single hex character.

If the characters are 0000, the hex character is 0

If the characters are 0001, the hex character is 1

If the characters are 0010, the hex character is 2

If the characters are 0011, the hex character is 3

If the characters are 0100, the hex character is 4

If the characters are 0101, the hex character is 5

If the characters are 0110, the hex character is 6

If the characters are 0111, the hex character is 7

If the characters are 1000, the hex character is 8

If the characters are 1001, the hex character is 9

If the characters are 1010, the hex character is A

If the characters are 1011, the hex character is B

If the characters are 1100, the hex character is C

If the characters are 1101, the hex character is D

If the characters are 1110, the hex character is E

If the characters are 1111, the hex character is F

Add 0x at the left of all the hex characters and terminate the ASCIIZ string with a zero character.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Converting binary to decimal is done by taking each binary digit and multiplying it by its place value in the binary system. In the binary system, the place value of each digit is twice that of the digit to its right; the place value columns in binary, from the right hand end, are 1, 2, 4, 8, 16, 32, ... (just like in the decimal system they are ten times: 1, 10, 100, 10000, ...).

example:

11001012 = 1 x 64 + 1 x 32 + 0 x 16 + 0 x 8+ 1 x 4 + 0 x 2 +1 x 1

= 64 + 32 + 4 + 1

= 10110

To convert a decimal number to binary:

  1. divide the number by 2 to give a quotient and a remainder
  2. note the remainder
  3. if the quotient is not-zero repeat from step 1 with the quotient as the number
  4. reverse the order of the remainders to give the number in binary

example:

10110 to binary:

101 ÷ 2 = 50 r 1

50 ÷ 2 = 25 r 0

25 ÷ 2 = 12 r 1

12 ÷ 2 = 6 r 0

6 ÷ 2 = 3 r 0

3 ÷ 2 = 1 r 1

1 ÷ 2 = 0 r 1

⇒ 10110 = 11001012

These methods can be used for conversion between any base and decimal base and vice-versa:

In converting to decimal, the place value columns are the base times the next column, eg converting octal (base 8) to decimal, each column is 8 times the next column; from the right hand end the place value column multipliers are 1, 8, 82 = 8 x 8 = 64, 83 = 64 x 8 = 512, 84 = 512 x 8 = 4096, etc.

In converting from decimal, divide by the new base10 (eg for octal (base 8), teh divisor is 8) noting the remainders, reversing them at the end.

example:

3458 = 3 x 82 + 4 x 8 + 5 = 22910

229 ÷ 8 = 28 r 5

28 ÷ 8 = 3 r 4

3 ÷ 8 = 0 r 3

⇒ 22910 = 3458

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
4y ago

Mason

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you convert binary into decimal and vice versa?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is 97 as a binary number?

You can convert decimal to binary, and vice versa, with most scientific calculators. In Windows XP, open the calculator and set it to "Scientific". In Windows 7, set it to "Programmer". After doing this, select "Decimal", type in the number, and then select "Binary" to convert to binary.


How do you convert degree minutes seconds into decimal degree?

Some scientific caculators can convert degrees minutes and seconds into decimal degrees and vice versa as for example 60045'18'' = 60.755


How do you convert from one metric unit to another?

From centimeter to meter, you move the decimal one place to the right, and vice versa.


Is it true It is impossible to solve an equation that contains both decimals and fractions?

No, it is not impossible because you can convert fractions into decimal and vice versa


What is equivalent to 17.5 mm converted to cm?

Move the decimal place over to the left once to convert the smaller millimeters to the larger centimeters and vice versa.


How do you multiply decimals by a fraction?

you can change the fraction into a decimal or vice-versa


How do you convert uppercase to lowercase and vice versa in c?

with toupper and tolower, from ctype.h


How many linear metres in 36 square metres?

You don't convert linear meters to square meters or vice versa; those two units are totally incompatible.You don't convert linear meters to square meters or vice versa; those two units are totally incompatible.You don't convert linear meters to square meters or vice versa; those two units are totally incompatible.You don't convert linear meters to square meters or vice versa; those two units are totally incompatible.


Why is binary number system used in digital electronics?

Binary is simpler than decimal. And it is easy to represent binary numbers with signals, since only two states are required. For example, a low voltage state might represent a zero, and a high voltage state might represent a one. Or vice versa.


How do you convert a fraction into a decimal fraction using calculator?

If I understand this right, you want to know how to convert a fraction into a decimal with the aid of a calculator. This is usually done by pressing the fraction button on your calculator which changes it from a fraction to a decimal and vice versa.


What is the general rule of fraction?

A fraction is a rational number that can be converted into a decimal or vice versa


Advantages of scott connection?

to convert three phase to two phase and vice versa