# What Is a Hexadecimal?

**Hexadecimal** (abbreviated as *hex* or subscript 16) is a round **system in hexadecimal** 1 in mathematics. It is generally expressed by the numbers 0 to 9 and the letters A to F (or a ~ f), where: A ~ F means 10 ~ 15, these are called **hexadecimal numbers** .

- Hexadecimal to Decimal: Decimal (Long) = CLng ("& H" & Hex (String))

- Decimal to Hexadecimal: Hexadecimal (String) = Hex $ (Decimal)

- A brief overview of

**hexadecimal**was given above, here is an example:

- E.g

- different

### Calculation method of hexadecimal mathematics

- Main article: Base conversion

**Decimal to Hex**

- Take the remainder theorem, for example, convert 4877

_{10}to hexadecimal:

- 4877 ÷ 16 = 304 .... 13 (D)

- 304 ÷ 16 = 19 .... 0

- 19 ÷ 16 = 1 .... 3

- 1 ÷ 16 = 0 .... 1

- This counts to 4877

_{10}= 130D

_{16}

### Functions in Hex Programming

**Visual Basic**

**Javascript**

- Javascript can use the toString () function to convert decimal digits to other arbitrary decimal formats (String type)

**Python**

- Call Python's built-in int () function to convert the string into a number.

^{[2]}