π is the Unicode character MATHEMATICAL DOUBLE-STRUCK SMALL E, code point U+1D556 (decimal 120150) in the Mathematical Alphanumeric Symbols block, added in Unicode 3.1. In HTML write 𝕖, and in UTF-8 it is the 4 bytes F0 9D 95 96.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D556 |
| Decimal | 120150 |
| UTF-8 bytes | F0 9D 95 96 |
| UTF-16 (big-endian) | D835 DD56 |
| UTF-32 | 0001D556 |
| HTML decimal | 𝕖 |
| HTML hex | 𝕖 |
| HTML named | 𝕖 |
| CSS | \1D556 |
| JavaScript | \u{1D556} or \uD835\uDD56 |
| JSON | \uD835\uDD56 |
| Python | \U0001D556 |
| Python by name | \N{MATHEMATICAL DOUBLE-STRUCK SMALL E} |
| Java, C# | \uD835\uDD56 |
| Rust, Swift | \u{1D556} |
| Go, C, C++ | \U0001D556 |
| URL (percent-encoded) | %F0%9D%95%96 |
JavaScript and JSON strings store text as UTF-16, so this character takes two code units (a surrogate pair) and "π".length is 2. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | MATHEMATICAL DOUBLE-STRUCK SMALL E |
| Code point | U+1D556 (decimal 120150) |
| Block | Mathematical Alphanumeric Symbols (U+1D400βU+1D7FF) |
| General category | Ll: Lowercase letter |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 3.1 |
Decomposition
MATHEMATICAL DOUBLE-STRUCK SMALL E has a compatibility decomposition (font) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Mathematical Alphanumeric Symbols
- π U+1D54D Mathematical Double-Struck Capital V
- π U+1D54E Mathematical Double-Struck Capital W
- π U+1D54F Mathematical Double-Struck Capital X
- π U+1D550 Mathematical Double-Struck Capital Y
- π U+1D552 Mathematical Double-Struck Small A
- π U+1D553 Mathematical Double-Struck Small B
- π U+1D554 Mathematical Double-Struck Small C
- π U+1D555 Mathematical Double-Struck Small D
- π U+1D557 Mathematical Double-Struck Small F
- π U+1D558 Mathematical Double-Struck Small G
- π U+1D559 Mathematical Double-Struck Small H
- π U+1D55A Mathematical Double-Struck Small I
- π U+1D55B Mathematical Double-Struck Small J
- π U+1D55C Mathematical Double-Struck Small K
- π U+1D55D Mathematical Double-Struck Small L
- π U+1D55E Mathematical Double-Struck Small M
All 997 characters: Mathematical Alphanumeric Symbols.
Official reference
Questions people ask
- What is the HTML code for π?
- Use the named entity 𝕖, or 𝕖 (decimal) or 𝕖 (hex).
- What is the UTF-8 encoding of U+1D556?
- F0 9D 95 96 (hex), 4 bytes. In a URL it is %F0%9D%95%96.
- How do I write U+1D556 in JavaScript or Python?
- JavaScript: \u{1D556} or \uD835\uDD56. Python: \U0001D556.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in