All representations
| Format | Value |
|---|---|
| Name | Digit 6 |
| Decimal | 54 |
| Hexadecimal | 0x36 |
| Octal | 066 |
| Binary | 00110110 |
| HTML numeric entity | 6 / 6 |
| Unicode code point | U+0036 |
| URL encoded | %36 |
| UTF-8 bytes | 36 (one byte, same as ASCII) |
Notes
- Subtracting 48 from the code gives the digit value 6.
- In C:
'6' - '0' == 6.
Nearby codes
Get this code in code
JavaScript '6'.charCodeAt(0) // 54
Python ord('6') # 54
C (char)54