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