integers.info

Hexadecimal Numbers

Conversion between 1984 and 7C0

The below table visualizes how the decimal number 1984 equals the hexadecimal number 7C0.

7×162=1792
+C×161=192
+0×160=0
=1984

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.