Home  >  Article  >  Binary hexadecimal comparison table

Binary hexadecimal comparison table

尚
Original
2019-12-21 16:57:2772228browse

Binary hexadecimal comparison table

Binary and hexadecimal comparison table:

##00010x01 (1)01010x05 (5) 1001 0x09 (9)11010x0D (D)##0010##0011 0x03 (3)01110x07 (7)10110x0B (B)1111 0x0F (F)01000x04 (4)10000x08 (8)11000x0C (C)

Binary system rules: even numbers have a mantissa of 0, and odd numbers have a mantissa of 1; the Nth power of 2, from right to left, the number of digits in power 1 is 1, and the subsequent digits are 0; for example, 4 is the 2nd power of 2 Then it is 0100

The method of converting binary to hexadecimal is to use the four-in-one method, that is, starting from the binary decimal point as the dividing point, every four digits to the left (or right) are taken into one digit.

Convert hexadecimal to binary, and vice versa. The method is to divide one hexadecimal number into four binary numbers, and add the four binary digits according to the weight, and finally get the binary number and decimal point. It's still fine.

Binary
Hex binary hex binary
hex binary Hex
0x02 (2) 0110 0x06 (6) 1010 0x0A (A) 1110 0x0E (E)


The above is the detailed content of Binary hexadecimal comparison table. 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