How to Calculate Decimals from Binary to Decimal

How to convert binary to decimal?

1, integer binary conversion to decimal

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

If the first is a positive integer of 0, after completing the number of digits, the number of digits in the binary will be multiplied by the corresponding value, and then added together to obtain the decimal system.

If the first digit of a binary number is a 1, you need to invert it and convert it.

2, decimal binary conversion to decimal

Method: the number of bits in binary and the corresponding value of the multiplication, and then added, the value of the converted decimal.

Expanded Information:

Binary is a widely used number system in computing technology. Binary data is a number represented by two digits, 0 and 1. It has a base of 2, a rounding rule of “two into one” and a borrowing rule of “one for two,” discovered by Leibniz, the 18th-century German philosopher of mathematics. The current computer system is basically a binary system, the data in the computer is mainly stored in the form of complementary code. The binary in a computer is a very tiny switch, with ‘on’ for 1 and ‘off’ for 0.

The invention and application of computers in the 20th century, which has been called one of the major symbols of the third technological revolution, was a major success, as digital computers can only recognize and process symbols consisting of ‘0’ . ‘1’ symbol strings consisting of codes. Its mode of operation is precisely binary. 19th century Irish logician George Boole’s process of thinking about logical propositions was transformed into a process of thinking about the symbols “0”.”’. 1”, binary is a system of 2-digit progressions. 0 and 1 are the basic operators. Because it uses only two numeric symbols, 0 and 1, it is very simple and convenient, and easy to realize electronically.

How to convert decimal binary to decimal?

Binary decimals all have a bit power of a negative integer power of 2, i.e. the order is negative.

For example, a binary decimal number, 0.101101b, is converted to a decimal decimal number:

0.101101b=1*2^(-1)+0*2^(-2)+1*2^(-3)+1*2^(-3)+1*2^(-4)+0*2^(-5)+1*2^(-6)=0.703125d.

Binary numbers:

Binary number division is very similar to decimal number division, you can first start from the highest place of the divisor, compare the divisor (or middle remainder) with the divisor, if the divisor (or middle remainder) is greater than the divisor, subtract the divisor from the divisor (or middle remainder), the quotient will be 1 and get the middle remainder after the subtraction, or else the quotient will be 0.

And then add the next place of the divisor to the middle remainder. Remainder of the last place, repeat the above process, you can get the required quotient of each and the final remainder.

How do you convert binary decimals to decimal numbers?

As with integers, count from the first digit after the decimal point, the first digit is 1/2, the second digit is 1/4, then 1/8, then 1/16, and so on, e.g.

Binary 1.011=1+0*1/2+1*1/4+1*1/8=1+0.25+0.125=Decimal 1.375