Home  >  Article  >  What is the conversion of 1011 from binary to decimal?

What is the conversion of 1011 from binary to decimal?

尚
Original
2020-04-22 13:20:2439625browse

What is the conversion of 1011 from binary to decimal?

The binary number 1011 is converted to decimal 11, and the algorithm is 1011B=2^3 2^1 2^0=8 2 1=11.

The rule for converting binary numbers into decimal numbers is: expand the binary numbers in the form of polynomial sums in bit-weighted form, and find the final sum, which is the corresponding decimal number - referred to as "sum by weights" ".

For example: Convert (1001.01)2 to decimal number.

Solution: (1001.01) 2 =1×(2 to the 3rd power) 0×(2 to the 2nd power) 0×(2 to the 1st power) 1×(2 to the 0th power) 0 ×(2 to the power of -1) 1×(2 to the power of -2) =8 0 0 1 0.5 0.25 =9.75.

The above is the detailed content of What is the conversion of 1011 from binary to decimal?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn