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