integers.info

Hexadecimal Numbers

Conversion between 709 and 2C5

The below table visualizes how the decimal number 709 equals the hexadecimal number 2C5.

2×162=512
+C×161=192
+5×160=5
=709

About Hexadecimal Numbers

Hexadecimal numbers are a positional numeral system with the base (or "radix") 16. Since there are only 10 different digits, alphabetical letters are used to reach 16 different digits:

DigitValue
0 - 90 - 9
A10
B11
C12
D13
E14
F15

In the hexadecimal system, the number 16 is written as 10. Hexadecimal numbers are used frequently within computers and programming, since they represent data in a more human-readable way than binary digits do. One hexadecimal digit represents four binary digits, and thus two hexadecimal digits together describe one Byte. One Byte can represent all numbers between 00 and FF in the hexadecimal format. An example of when this is used in programming is color codes, for example in CSS on a website, where hexadecimal numbers can be used to define the three color components Red, Green and Blue (#RRGGBB). Some examples below:

ColorHex code
#FF0000
#00CC00
#0000FF
#FF00FF
#FF8800

The hexadecimal system is built-in into many programming languages, and hexadecimal numbers are usually declared by starting the number with 0x. You can for example easily test in JavaScript by opening your web browser Console (normally by the F12 key) and type in 0x10. The browser will return the number 16. If you type in 0xFF, it will return 255, and so on.