π is the Unicode character AEGEAN NUMBER ONE, code point U+10107 (decimal 65799) in the Aegean Numbers block, added in Unicode 4.0. In HTML write 𐄇, and in UTF-8 it is the 4 bytes F0 90 84 87.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10107 |
| Decimal | 65799 |
| UTF-8 bytes | F0 90 84 87 |
| UTF-16 (big-endian) | D800 DD07 |
| UTF-32 | 00010107 |
| HTML decimal | 𐄇 |
| HTML hex | 𐄇 |
| CSS | \10107 |
| JavaScript | \u{10107} or \uD800\uDD07 |
| JSON | \uD800\uDD07 |
| Python | \U00010107 |
| Python by name | \N{AEGEAN NUMBER ONE} |
| Java, C# | \uD800\uDD07 |
| Rust, Swift | \u{10107} |
| Go, C, C++ | \U00010107 |
| URL (percent-encoded) | %F0%90%84%87 |
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 | AEGEAN NUMBER ONE |
| Code point | U+10107 (decimal 65799) |
| Block | Aegean Numbers (U+10100βU+1013F) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Numeric value | 1 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.0 |
Nearby in Aegean Numbers
- π U+10100 Aegean Word Separator Line
- π U+10101 Aegean Word Separator Dot
- π U+10102 Aegean Check Mark
- π U+10108 Aegean Number Two
- π U+10109 Aegean Number Three
- π U+1010A Aegean Number Four
- π U+1010B Aegean Number Five
- π U+1010C Aegean Number Six
- π U+1010D Aegean Number Seven
- π U+1010E Aegean Number Eight
- π U+1010F Aegean Number Nine
All 57 characters: Aegean Numbers.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐄇 (decimal) or 𐄇 (hex).
- What is the UTF-8 encoding of U+10107?
- F0 90 84 87 (hex), 4 bytes. In a URL it is %F0%90%84%87.
- How do I write U+10107 in JavaScript or Python?
- JavaScript: \u{10107} or \uD800\uDD07. Python: \U00010107.
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