(10110101)B=1*2^7 1*2^5 1*2^4 1*2^2 1*2^0=181(D) .
Number system, also called counting system, refers to a method that uses the same set of fixed characters and unified rules to represent numerical values.
Decimal (in natural language) is usually represented by 0 to 9, binary (in computers) is represented by 0 and 1, octal is represented by 0 to 7, and hexadecimal is represented by 0 to F.
(1) Convert decimal integer to binary (octal, hexadecimal), conversion method: divide the decimal remainder by the binary (octal, hexadecimal) number, the remainder obtained for the first time is the lowest The last remaining remainder is the most significant digit.
(2) Convert binary (eight, hexadecimal) integers into decimal integers. Conversion method: Expand the binary (eight, hexadecimal) integers according to weights, and calculate the cumulative sum to get the corresponding Decimal.
(3) Conversion between binary and octal or hexadecimal numbers Conversion method between binary and octal: 3-digit binary can be converted into 1-digit octal, and 1-digit octal can be converted into 3-digit Binary number.
Conversion method between binary numbers and hexadecimal numbers: 4-digit binary numbers can be converted into 1-digit hexadecimal numbers, and 1-digit hexadecimal numbers can be converted into 4-digit binary numbers.
The above is the detailed content of What is the binary number 10110101 converted to decimal number?. For more information, please follow other related articles on the PHP Chinese website!