Question: What is the decimal number 32 expressed in hexadecimal?

## Show answer

20.

In computing and mathematics, hexadecimal (often shortened to “hex”) is a base-16 system used to represent numbers. This system uses sixteen distinct symbols: 0-9 to represent values zero to nine, and A-F (or alternatively a-f) to represent values ten to fifteen. It’s frequently used in computer science and digital electronics because of its more human-friendly representation of binary-coded values.

To convert the decimal number 32 into a hexadecimal value:

- First, we need to determine how many powers of 16 (the base of hexadecimal) are required to represent the number 32. The powers of 16 are:
- 16
^{0}= 1 - 16
^{1}= 16 - 16
^{2}= 256 - and so on…

- 16
- We can see that 32 is between 16
^{0}and 16^{2}. Specifically, 16^{1}or 16 can be used twice to get to 32. So, we can break down 32 as: 2×16^{1}. - Convert the coefficients of the power into hexadecimal symbols: For 2×16
^{1}, the coefficient is 2, which remains 2 in hexadecimal. - Thus, the number 32 in decimal is represented as 20 in hexadecimal.

So, the decimal number 32 is expressed as “20” in the hexadecimal numbering system. In many contexts, to avoid confusion, you might see a prefix like “0x” added to indicate a hexadecimal representation, making it “0x20”.