What is hexadecimal?

Hexadecimal is the Base-16 counting system, which means that each digit represents sixteen different numbers, unlike the ten numbers in our Base-10 system. The system is generally represented using numbers 0-9 for the first ten digits and then the letters A-F for the following six digits. It is not a historical counting system, but it has its origin at an electronic age, because it is quite a user -friendly way to expand the binary system. However, this can be quite cumbersome for people. Hexadecimal offers a more efficient way to relate to binary values. This is because sixteen are two to fourth power, so one digit can be seen as four binary digits. In other words, any four -digit value in the binary case may be expressed in one "hex" number and eight digits in binary cases can be expressed by two numbers of hex and so on. This is unlike the Base-10 system is used that would not match the binary digits in any consistent multiple.

While larger basic systems such as Base-32 and Base-64 are used on computer computers, hex is much easier for most people to communicate, so it remains the most ubiquitous. Base-32 and Base-64 have applications in the calculation, but rarely are used in anything but the deepest coding levels. Although it requires to get used to, even non -programmers often find themselves using hexadecimal regularly and quickly gain ability.

For example, many designers who use graphic design programs will get used to using hexadecimal codes to represent the colors used. HEX is an ideal shortcut because color codes on most computers consist of three values ​​from 0 to 256, one for red, one green and one for blue. RGB or red-green blue, 256 OTUDEER is simply 16 to second strength, and can be expressed by two digits. For examplead, color cobalt green can be represented with RGB 61 145.64, or simply hexadecimal value #3D9140.

Counting in hexadecimal, as with any basic system, is quite straightforward, although at first glance it may look more complicated. COUNTING TO FIFTY, FOR EXAMPLE, WOULD LOOK LIKE: 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1F 2b, 2C, 2D, 2E, 2F, 30, 31, 32. Note that it looks like the number completed at 32, but in fact, the number 50 is represented in hexadecimal. Because hexadecimal is basically based on a binary system, there are interesting simplicity that appear when we work with the power of two. For example, 2 4 is simply 10, 2 5 is 20, 2

6 is 40, 2

7 is 80, 2

8 is 100, 2

9 and IS 200 and so on.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?