Home>Article> What is the binary number 1001001 converted to decimal number?

What is the binary number 1001001 converted to decimal number?

尚
Original
2019-06-10 16:31:15 62182browse

What is the binary number 1001001 converted to decimal number?

To convert a binary number into a decimal number, just expand each bit by right:

(1001001)2=1×2^6 0×2^5 0×2 ^4 1×2^3 0×2^2 0×2^1 1×2^0
= 64 0 0 8 0 0 1
= 73

## Convert binary to other bases:

(1) Convert binary to decimal: multiply the base number by the weight, and then add it. When simplifying the operation, you can not write out the items with 0 digits (because 0 multiplied by other numbers that are not 0 are all 0). The same goes for the decimal part, but with less precision.

(2) Binary to octal conversion: use the "three-digit unification method" (it is grouped by three digits on the left and right with the decimal point as the center, and 0 is added for any deficiencies) so that the conversion can be easily performed . Example: Convert the binary number (11100101.11101011)2 into an octal number. (11100101.11101011)2=(345.353)8

(3) Binary to hexadecimal conversion: the "four-digit unification method" is used, the integer part starts from the low bit, and every four binary digits are one Group, if there are less than four digits at the end, add 0 to the high digits until the four digits are completed, or you may not add 0; the decimal part starts from the high digits, and every four binary digits form a group. If there are less than four digits at the end, 0 must be added to the low digits. Complete the four digits, replace them with the corresponding hexadecimal numbers, and then write the corresponding hexadecimal numbers in order. Example: Convert the binary number (10011111011.11101100)2 into a hexadecimal number. (10011111011.11101100)2=(4FB.EC)16

The above is the detailed content of What is the binary number 1001001 converted to decimal number?. 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