Decimal for Hex
Transform numbers to the Hexadecimal system (Base 16).
What is Base 16 (Hexadecimal)?
O Hexadecimal systemIt is a more compact and readable way that computers use to display very large numbers and memory blocks that, originally, would be written in binary and would be too long.
Since it operates in Base 16, we need 16 symbols. Mathematics takes the 10 digits we know (0 to 9) and borrows the first six letters of the alphabet to fill the rest, so that:
- A = 10
- B = 11
- C = 12
- D = 13
- E = 14
- F = 15
Where is it used?
If you are a web designer, you have surely seen the color white written in CSS as#FFFFFF. This happens because the colors on the screen are generated by mixing Red, Green, and Blue, each ranging in intensity from 0 to 255 (in decimal). The value 255 is written in Hexadecimal as \"FF\". Therefore, FFFFFF means maximum light in all three colors.