π is the Unicode character MYANMAR PAO DIGIT TWO, code point U+116D2 (decimal 71378) in the Myanmar Extended-C block, added in Unicode 16.0. In HTML write 𑛒, and in UTF-8 it is the 4 bytes F0 91 9B 92.
Codes
| Where | How to write it |
|---|---|
| Code point | U+116D2 |
| Decimal | 71378 |
| UTF-8 bytes | F0 91 9B 92 |
| UTF-16 (big-endian) | D805 DED2 |
| UTF-32 | 000116D2 |
| HTML decimal | 𑛒 |
| HTML hex | 𑛒 |
| CSS | \116D2 |
| JavaScript | \u{116D2} or \uD805\uDED2 |
| JSON | \uD805\uDED2 |
| Python | \U000116D2 |
| Python by name | \N{MYANMAR PAO DIGIT TWO} |
| Java, C# | \uD805\uDED2 |
| Rust, Swift | \u{116D2} |
| Go, C, C++ | \U000116D2 |
| URL (percent-encoded) | %F0%91%9B%92 |
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 | MYANMAR PAO DIGIT TWO |
| Code point | U+116D2 (decimal 71378) |
| Block | Myanmar Extended-C (U+116D0βU+116FF) |
| General category | Nd: Decimal digit |
| Script | Myanmar |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 16.0 |
Nearby in Myanmar Extended-C
- π U+116D0 Myanmar Pao Digit Zero
- π U+116D1 Myanmar Pao Digit One
- π U+116D3 Myanmar Pao Digit Three
- π U+116D4 Myanmar Pao Digit Four
- π U+116D5 Myanmar Pao Digit Five
- π U+116D6 Myanmar Pao Digit Six
- π U+116D7 Myanmar Pao Digit Seven
- π U+116D8 Myanmar Pao Digit Eight
- π U+116D9 Myanmar Pao Digit Nine
- π U+116DA Myanmar Eastern Pwo Karen Digit Zero
All 20 characters: Myanmar Extended-C.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑛒 (decimal) or 𑛒 (hex).
- What is the UTF-8 encoding of U+116D2?
- F0 91 9B 92 (hex), 4 bytes. In a URL it is %F0%91%9B%92.
- How do I write U+116D2 in JavaScript or Python?
- JavaScript: \u{116D2} or \uD805\uDED2. Python: \U000116D2.
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