logo search
магистранты-рабочий вариант2+++

Hexadecimal

The hexadecimal or Base 16 number system is commonly used to represent binary numbers in a more readable form. Computers perform computations in binary. However, there are several instances when the binary output of a computer is expressed in hexadecimal to make it easier to read.

The configuration register in Cisco routers often requires hexadecimal to binary and binary to hexadecimal conversions. Cisco routers have a configuration register that is 16 bits long. The 16-bit binary number can be represented as a four-digit hexadecimal number. For example, 0010000100000010 in binary equals 2102 in hexadecimal. A hexadecimal number is often indicated with a Ox. For example, the hexadecimal number 2102 would be written as Ox2102.

Like the binary and decimal systems, the hexadecimal system is based on the use of symbols, powers, and positions. The symbols that hexadecimal uses are the digits 0 through 9 and the letters A through F.

All combinations of four binary digits can be represented with one hexadecimal symbol. These values require one or two decimal symbols. Two hexadecimal digits can efficiently represent any combination of eight binary digits. The decimal representation of an eight-bit binary number will require either two or three decimal digits. Since one hexadecimal digit always represents four binary digits, hexadecimal symbols are easier to use than decimal symbols when working with large binary numbers. Using hexadecimal representation also reduces the confusion of reading long strings of binary numbers and the amount of space it takes to write binary numbers. Remember that Ox may be used to indicate a hexadecimal value. The hexadecimal number 5D might be written as Ox5D

To convert to binary, simply expand each hexadecimal digit into its four-bit binary equivalent.

ВАРІАНТ IV