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