π is the Unicode character PAHAWH HMONG DIGIT TWO, code point U+16B52 (decimal 93010) in the Pahawh Hmong block, added in Unicode 7.0. In HTML write 𖭒, and in UTF-8 it is the 4 bytes F0 96 AD 92.
Codes
| Where | How to write it |
|---|---|
| Code point | U+16B52 |
| Decimal | 93010 |
| UTF-8 bytes | F0 96 AD 92 |
| UTF-16 (big-endian) | D81A DF52 |
| UTF-32 | 00016B52 |
| HTML decimal | 𖭒 |
| HTML hex | 𖭒 |
| CSS | \16B52 |
| JavaScript | \u{16B52} or \uD81A\uDF52 |
| JSON | \uD81A\uDF52 |
| Python | \U00016B52 |
| Python by name | \N{PAHAWH HMONG DIGIT TWO} |
| Java, C# | \uD81A\uDF52 |
| Rust, Swift | \u{16B52} |
| Go, C, C++ | \U00016B52 |
| URL (percent-encoded) | %F0%96%AD%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 | PAHAWH HMONG DIGIT TWO |
| Code point | U+16B52 (decimal 93010) |
| Block | Pahawh Hmong (U+16B00βU+16B8F) |
| General category | Nd: Decimal digit |
| Script | Pahawh Hmong |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Pahawh Hmong
- π U+16B40 Pahawh Hmong Sign Vos Seev
- π U+16B41 Pahawh Hmong Sign Meej Suab
- π U+16B42 Pahawh Hmong Sign Vos Nrua
- π U+16B43 Pahawh Hmong Sign Ib Yam
- π U+16B44 Pahawh Hmong Sign Xaus
- π U+16B45 Pahawh Hmong Sign Cim Tsov Rog
- π U+16B50 Pahawh Hmong Digit Zero
- π U+16B51 Pahawh Hmong Digit One
- π U+16B53 Pahawh Hmong Digit Three
- π U+16B54 Pahawh Hmong Digit Four
- π U+16B55 Pahawh Hmong Digit Five
- π U+16B56 Pahawh Hmong Digit Six
- π U+16B57 Pahawh Hmong Digit Seven
- π U+16B58 Pahawh Hmong Digit Eight
- π U+16B59 Pahawh Hmong Digit Nine
- π U+16B5B Pahawh Hmong Number Tens
All 127 characters: Pahawh Hmong.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𖭒 (decimal) or 𖭒 (hex).
- What is the UTF-8 encoding of U+16B52?
- F0 96 AD 92 (hex), 4 bytes. In a URL it is %F0%96%AD%92.
- How do I write U+16B52 in JavaScript or Python?
- JavaScript: \u{16B52} or \uD81A\uDF52. Python: \U00016B52.
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