How to convert binary to decimal

Binary to decimal method

Binary to decimal method is as follows:

1, the unsigned integer binary into decimal numbers, from the first bit of the right side of the binary number, from right to left, the first binary position multiplied by the number of the corresponding digit of the power of 2, and then add the product of each can be obtained by the binary number of the corresponding decimal number.

2, with the sign of the binary number into decimal numbers, first observe the binary number of the highest bit is what number, if it is 1, that is, the negative number, if it is 0, that is, the positive number, to determine the sign of the decimal number and then converted to decimal numbers.

3, the decimal number of binary numbers into decimal numbers, from left to right, with the number of binary digits multiplied by 2 to the power of the negative number of digits, and then add all the products can be obtained.

Binary to decimal:

Binary to decimal is the use of certain mathematical means to convert the binary digits into decimal digits, widely used in programming and other fields.

Binary is a number system widely used in computing technology. Binary data is a number represented by two digits, 0 and 1. Its base is 2, the rule of rounding is “two into one”, and the rule of borrowing is “borrowing one as two”.

The decimal system is a method of counting. The use of decimal system in human arithmetic may be related to the fact that humans have ten fingers. Aristotle claimed that the universal use of the decimal system was simply a result of the anatomical fact that the vast majority of humans are born with 10 fingers.

How to convert binary to decimal

Binary to decimal conversion method is as follows:

1, integer binary to decimal conversion: first of all, the binary number to make up the number of bits, the first place if the first place is 0 on behalf of the positive integers, if the first place is a 1 on behalf of the negative integers.

First look at the first is a positive integer 0, make up the number of bits, the number of bits in binary will be multiplied by the corresponding value of the lower side, and then add the decimal system, such as 1010 converted to decimal.

2, if the binary complementary digits after the first 1, you need to take the inverse and then converted: for example, 11101011, the first 1, then take the inverse of it: -00010100, and then calculate the 10100 corresponding to the decimal 20, so the corresponding decimal -20.

3, there will be a decimal conversion of binary to decimal: for example, 0.1101 converted to decimal, and then added to get the decimal value. 0.1101 converted to decimal method: the four digits of the binary were multiplied by the value corresponding to the following (as shown in Figure 9) and then add the value of the converted decimal.