π is the Unicode character GREEK ZERO SIGN, code point U+1018A (decimal 65930) 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 86 8A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1018A |
| Decimal | 65930 |
| UTF-8 bytes | F0 90 86 8A |
| UTF-16 (big-endian) | D800 DD8A |
| UTF-32 | 0001018A |
| HTML decimal | 𐆊 |
| HTML hex | 𐆊 |
| CSS | \1018A |
| JavaScript | \u{1018A} or \uD800\uDD8A |
| JSON | \uD800\uDD8A |
| Python | \U0001018A |
| Python by name | \N{GREEK ZERO SIGN} |
| Java, C# | \uD800\uDD8A |
| Rust, Swift | \u{1018A} |
| Go, C, C++ | \U0001018A |
| URL (percent-encoded) | %F0%90%86%8A |
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 ZERO SIGN |
| Code point | U+1018A (decimal 65930) |
| Block | Ancient Greek Numbers (U+10140βU+1018F) |
| General category | No: Other number |
| Script | Greek |
| Bidirectional class | ON: Other neutral |
| Numeric value | 0 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.1 |
Nearby in Ancient Greek Numbers
- π U+10182 Greek Kyathos Base Sign
- π U+10183 Greek Litra Sign
- π U+10184 Greek Ounkia Sign
- π U+10185 Greek Xestes Sign
- π U+10186 Greek Artabe Sign
- π U+10187 Greek Aroura Sign
- π U+10188 Greek Gramma Sign
- π U+10189 Greek Tryblion Base Sign
- π U+1018B Greek One Quarter Sign
- π U+1018C Greek Sinusoid Sign
- π U+1018D Greek Indiction Sign
- π U+1018E Nomisma Sign
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+1018A?
- F0 90 86 8A (hex), 4 bytes. In a URL it is %F0%90%86%8A.
- How do I write U+1018A in JavaScript or Python?
- JavaScript: \u{1018A} or \uD800\uDD8A. Python: \U0001018A.
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