π is the Unicode character MODIFIER LETTER SMALL RAMS HORN, code point U+10791 (decimal 67473) in the Latin Extended-F block, added in Unicode 14.0. In HTML write 𐞑, and in UTF-8 it is the 4 bytes F0 90 9E 91.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10791 |
| Decimal | 67473 |
| UTF-8 bytes | F0 90 9E 91 |
| UTF-16 (big-endian) | D801 DF91 |
| UTF-32 | 00010791 |
| HTML decimal | 𐞑 |
| HTML hex | 𐞑 |
| CSS | \10791 |
| JavaScript | \u{10791} or \uD801\uDF91 |
| JSON | \uD801\uDF91 |
| Python | \U00010791 |
| Python by name | \N{MODIFIER LETTER SMALL RAMS HORN} |
| Java, C# | \uD801\uDF91 |
| Rust, Swift | \u{10791} |
| Go, C, C++ | \U00010791 |
| URL (percent-encoded) | %F0%90%9E%91 |
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 | MODIFIER LETTER SMALL RAMS HORN |
| Code point | U+10791 (decimal 67473) |
| Block | Latin Extended-F (U+10780βU+107BF) |
| General category | Lm: Modifier letter |
| Script | Latin |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 14.0 |
Decomposition
MODIFIER LETTER SMALL RAMS HORN has a compatibility decomposition (super) 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 Latin Extended-F
- π U+10789 Modifier Letter Small Dz Digraph With Curl
- π U+1078A Modifier Letter Small Dezh Digraph
- π U+1078B Modifier Letter Small D With Tail
- π U+1078C Modifier Letter Small D With Hook
- π U+1078D Modifier Letter Small D With Hook And Tail
- π U+1078E Modifier Letter Small Reversed E
- π U+1078F Modifier Letter Small Closed Reversed Open E
- π U+10790 Modifier Letter Small Feng Digraph
- π U+10792 Modifier Letter Small Capital G
- π U+10793 Modifier Letter Small G With Hook
- π U+10794 Modifier Letter Small Capital G With Hook
- π U+10795 Modifier Letter Small H With Stroke
- π U+10796 Modifier Letter Small Capital H
- π U+10797 Modifier Letter Small Heng With Hook
- π U+10798 Modifier Letter Small Dotless J With Stroke And Hook
- π U+10799 Modifier Letter Small Ls Digraph
All 62 characters: Latin Extended-F.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐞑 (decimal) or 𐞑 (hex).
- What is the UTF-8 encoding of U+10791?
- F0 90 9E 91 (hex), 4 bytes. In a URL it is %F0%90%9E%91.
- How do I write U+10791 in JavaScript or Python?
- JavaScript: \u{10791} or \uD801\uDF91. Python: \U00010791.
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