π is the Unicode character GREEK ACROPHONIC HERAEUM ONE PLETHRON, code point U+10158 (decimal 65880) 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 98.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10158 |
| Decimal | 65880 |
| UTF-8 bytes | F0 90 85 98 |
| UTF-16 (big-endian) | D800 DD58 |
| UTF-32 | 00010158 |
| HTML decimal | 𐅘 |
| HTML hex | 𐅘 |
| CSS | \10158 |
| JavaScript | \u{10158} or \uD800\uDD58 |
| JSON | \uD800\uDD58 |
| Python | \U00010158 |
| Python by name | \N{GREEK ACROPHONIC HERAEUM ONE PLETHRON} |
| Java, C# | \uD800\uDD58 |
| Rust, Swift | \u{10158} |
| Go, C, C++ | \U00010158 |
| URL (percent-encoded) | %F0%90%85%98 |
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 HERAEUM ONE PLETHRON |
| Code point | U+10158 (decimal 65880) |
| Block | Ancient Greek Numbers (U+10140βU+1018F) |
| General category | Nl: Letter number |
| Script | Greek |
| Bidirectional class | ON: Other neutral |
| Numeric value | 1 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.1 |
Nearby in Ancient Greek Numbers
- π U+10150 Greek Acrophonic Attic Ten Staters
- π U+10151 Greek Acrophonic Attic Fifty Staters
- π U+10152 Greek Acrophonic Attic One Hundred Staters
- π U+10153 Greek Acrophonic Attic Five Hundred Staters
- π 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+10159 Greek Acrophonic Thespian One
- π U+1015A Greek Acrophonic Hermionian One
- π U+1015B Greek Acrophonic Epidaurean Two
- π U+1015C Greek Acrophonic Thespian 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
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+10158?
- F0 90 85 98 (hex), 4 bytes. In a URL it is %F0%90%85%98.
- How do I write U+10158 in JavaScript or Python?
- JavaScript: \u{10158} or \uD800\uDD58. Python: \U00010158.
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