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