Vulgar fraction one half
ASCII code 189 (0xBD) represents the Vulgar fraction one half character in the extended ASCII table (128–255). It is a vulgar fraction character, providing a compact way to display common fractional values in text. The extended ASCII range builds upon the original 128-character ASCII set, adding accented letters, currency symbols, typographic marks, and mathematical symbols. These characters are defined by the Windows-1252 (CP-1252) encoding, which is a superset of ISO 8859-1 (Latin-1). In modern web development, UTF-8 encoding is preferred, but understanding extended ASCII remains important for legacy system compatibility and character encoding troubleshooting.
| Decimal | 189 |
| Octal | 275 |
| Hexadecimal | 0xBD |
| Binary | 10111101 |
| HTML Code | ½ |
| HTML Entity | ½ |
| Unicode | U+00BD |
| Unicode Name | VULGAR FRACTION ONE HALF |
| URL Escape | %BD |
| Quoted-Printable | =BD |
| UTF-8 (Hex) | C2 BD |
| Category | Extended — Fractions |
// Character literal
let char = '½';
// Using char code
let char2 = String.fromCharCode(189);
// Unicode escape
let char3 = '\u00BD'; # Character literal
char = '½'
# Using chr()
char = chr(189)
# Using ord() to get code
code = ord('½') # Returns 189 <!-- Direct character -->
½
<!-- HTML entity (numeric) -->
½
<!-- Hex entity -->
½ // Character literal
char c = '½';
// Using cast
char c2 = (char)189;
// To get code from char
int code = (int)'½'; // Returns 189