2
Digit two
Decimal: 50
Hex: 32
Number
ASCII Values
Decimal
50
Hexadecimal
0x32
Character
2
Usage Examples
JavaScript (from decimal)
String.fromCharCode(50); // "2"
JavaScript (to decimal)
"2".charCodeAt(0); // 50
Python
chr(50) # "2"
ord("2") # 50C/C++
char c = 50; // '2' int code = '2'; // 50
Number Characters
Number characters (48-57) represent the decimal digits 0-9. These are essential for numeric data representation.