½

ASCII Code 189

Vulgar fraction one half

About This Character

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.

Character Encoding

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

How to Type in Code

JavaScript
// Character literal
let char = '½';
// Using char code
let char2 = String.fromCharCode(189);
// Unicode escape
let char3 = '\u00BD';
Python
# Character literal
char = '½'
# Using chr()
char = chr(189)
# Using ord() to get code
code = ord('½')  # Returns 189
HTML
<!-- Direct character -->
½
<!-- HTML entity (numeric) -->
&#189;
<!-- Hex entity -->
&#xBD;
C#
// Character literal
char c = '½';
// Using cast
char c2 = (char)189;
// To get code from char
int code = (int)'½';  // Returns 189

See Also

Copied!