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