Why hexadecimal numbers are needed?
When there is a need to display/write/read a binary number, we have to write/read/understand a bunch of 0s and 1s. It's tedious and error-prone.
A hexadecimal equivalent of a binary number is much shorter. 4 bits are written as a single hexadecimal digit. So roughly, a hexadecimal number is only 1/4 length of its equivalent binary number.
The benefits of hexadecimal numbers
- Less space is needed to display/show hexadecimal numbers on screen.
- Less chance of making errors.
- Easier to read/write/understand.
- Easier to identify errors of/debug a program.
The applications of hexadecimal numbers
- MAC addresses
- Web addresses
- Memory dumps
- Web colors in HTML
- Assembly code and machine code