223k views
3 votes
What is HEX?

Need help in Computer Programming

2 Answers

5 votes

Answer:

Hexadecimal (or hex) is a base 16 system used to simplify how binary is represented. ... This means an 8-bit binary number can be written using only two different hex digits - one hex digit for each nibble (or group of 4-bits). It is much easier to write numbers as hex than to write them as binary numbers.

User Ilian Andreev
by
4.7k points
7 votes

Hexadecimal is a base16 way of representing numerical values in a way a human can remember, it is not easier for the computer to read it but it is for a human. Hex can have both letters and numbers, as soon as the binary value gets above 9 it is replaced with a letter. Numbers are used from 0 to 9 and letters are used between binary values 10 and 16, hex does not go above 16 instead it just simply gets another digit.

For example, if there is a hex code of D9 then in decimal, it represents the number 139.

Hope this helps!

User Gberger
by
4.9k points