This shows you the differences between two versions of the page.
hex_or_hexadecimal [2006/10/15 09:35] (current)
|Line 1:||Line 1:|
|+||Refers to the base-16 number system, which consists of 16 unique symbols: the numbers 0 to 9 and the letters A to F. For example, the decimal number 15 is represented as F in the hexadecimal numbering system. The hexadecimal system is useful because it can represent every byte (8 bits) as two consecutive hexadecimal digits. It is easier for humans to read hexadecimal numbers than binary numbers. It is often termed as HEX. Because of the more efficient hardware implications of using HEX over octal, it has practically antiquated that representation. To convert a value from hexadecimal to binary, you merely translate each hexadecimal digit into its 4-bit binary equivalent. Hexadecimal numbers have either and 0x prefix or an h suffix. For example, the hexadecimal number "0x3F7A" translates to the following binary number: 0011 1111 0111 1010.|