π is the Unicode character GREEK ACROPHONIC THESPIAN TWO, code point U+1015C (decimal 65884) in the Ancient Greek Numbers block, added in Unicode 4.1. In HTML write 𐅜, and in UTF-8 it is the 4 bytes F0 90 85 9C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1015C |
| Decimal | 65884 |
| UTF-8 bytes | F0 90 85 9C |
| UTF-16 (big-endian) | D800 DD5C |
| UTF-32 | 0001015C |
| HTML decimal | 𐅜 |
| HTML hex | 𐅜 |
| CSS | \1015C |
| JavaScript | \u{1015C} or \uD800\uDD5C |
| JSON | \uD800\uDD5C |
| Python | \U0001015C |
| Python by name | \N{GREEK ACROPHONIC THESPIAN TWO} |
| Java, C# | \uD800\uDD5C |
| Rust, Swift | \u{1015C} |
| Go, C, C++ | \U0001015C |
| URL (percent-encoded) | %F0%90%85%9C |
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 | GREEK ACROPHONIC THESPIAN TWO |
| Code point | U+1015C (decimal 65884) |
| Block | Ancient Greek Numbers (U+10140βU+1018F) |
| General category | Nl: Letter number |
| Script | Greek |
| Bidirectional class | ON: Other neutral |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.1 |
Nearby in Ancient Greek Numbers
- π U+10154 Greek Acrophonic Attic One Thousand Staters
- π U+10155 Greek Acrophonic Attic Ten Thousand Staters
- π U+10156 Greek Acrophonic Attic Fifty Thousand Staters
- π U+10157 Greek Acrophonic Attic Ten Mnas
- π U+10158 Greek Acrophonic Heraeum One Plethron
- π U+10159 Greek Acrophonic Thespian One
- π U+1015A Greek Acrophonic Hermionian One
- π U+1015B Greek Acrophonic Epidaurean Two
- π U+1015D Greek Acrophonic Cyrenaic Two Drachmas
- π U+1015E Greek Acrophonic Epidaurean Two Drachmas
- π U+1015F Greek Acrophonic Troezenian Five
- π U+10160 Greek Acrophonic Troezenian Ten
- π ‘ U+10161 Greek Acrophonic Troezenian Ten Alternate Form
- π ’ U+10162 Greek Acrophonic Hermionian Ten
- π £ U+10163 Greek Acrophonic Messenian Ten
- π € U+10164 Greek Acrophonic Thespian Ten
All 79 characters: Ancient Greek Numbers.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 𐅜 (decimal) or 𐅜 (hex).
- What is the UTF-8 encoding of U+1015C?
- F0 90 85 9C (hex), 4 bytes. In a URL it is %F0%90%85%9C.
- How do I write U+1015C in JavaScript or Python?
- JavaScript: \u{1015C} or \uD800\uDD5C. Python: \U0001015C.
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