In networking, Media Access Control (MAC) addresses use 12 hexadecimal digits (48 bits) to uniquely identify hardware devices on a local network.
In web technologies, hexadecimal is used for URL encoding to represent special characters that are not allowed in a standard URL string.
When a special character is used in a URL, it is converted to its hexadecimal ASCII value and prefixed with a percent sign (e.g., a space becomes \%20).
While pure binary is more storage-efficient for large integers, it is prone to precision loss when representing certain decimal fractions used in currency.
| Feature | Pure Binary | Binary Coded Decimal (BCD) |
|---|---|---|
| Storage Efficiency | High (uses all bit combinations) | Lower (6 combinations per nibble wasted) |
| Precision | Can have rounding errors in base-10 | Perfect decimal precision |
| Complexity | Simple for CPU arithmetic | Requires complex logic for decimal correction |
| Primary Use | General computation | Financial systems and displays |
Identify the Context: If a question mentions 'rounding errors' or 'money', the answer is almost certainly BCD.
Conversion Ratios: Always remember the 1:4 ratio for Hexadecimal; if you see a 48-bit address, expect 12 hex digits.
Human Factor: If asked why Hex is used instead of Binary, focus on 'readability' and 'reduction of transcription errors' rather than computer speed.
URL Encoding: Remember that the % symbol is the standard prefix for hexadecimal codes in web addresses.