ASCII 48
Digit 0 (0)
Printable ASCII
The digit zero. In most languages, 0 is falsy. In C-family strings, '\0' terminates a string.
All encodings at a glance
| Decimal | 48 |
| Hexadecimal | 0x30 |
| Octal | 0060 |
| Binary | 00110000 |
| HTML numeric entity | 0 |
| URL encoding | %30 |
| UTF-8 bytes | 0x30 |
Code snippets
JavaScript
String.fromCharCode(48); // "0"
48.toString(16); // "30"Python
chr(48) # '0'
ord(chr(48)) # 48
hex(48) # '0x30'HTML
0 <!-- numeric entity (no named entity for this character) -->