Logic circuits
What is the hexadecimal number FF in decimal?
- A15
- B255
- C256
Show answer and explanation
Answer: B. 255
Hex F is decimal 15, so FF = 15 × 16 + 15 = 255, equivalent to binary 11111111, the largest unsigned integer in 8 bits. Each hex digit is exactly four bits, so two digits make one byte. Hex is therefore used for byte-oriented data such as memory addresses, colors (HTML #FF0000 is red 255, green 0, blue 0) and MAC addresses.