π is the Unicode character MODI SIGN HUVA, code point U+11644 (decimal 71236) in the Modi block, added in Unicode 7.0. In HTML write 𑙄, and in UTF-8 it is the 4 bytes F0 91 99 84.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11644 |
| Decimal | 71236 |
| UTF-8 bytes | F0 91 99 84 |
| UTF-16 (big-endian) | D805 DE44 |
| UTF-32 | 00011644 |
| HTML decimal | 𑙄 |
| HTML hex | 𑙄 |
| CSS | \11644 |
| JavaScript | \u{11644} or \uD805\uDE44 |
| JSON | \uD805\uDE44 |
| Python | \U00011644 |
| Python by name | \N{MODI SIGN HUVA} |
| Java, C# | \uD805\uDE44 |
| Rust, Swift | \u{11644} |
| Go, C, C++ | \U00011644 |
| URL (percent-encoded) | %F0%91%99%84 |
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 | MODI SIGN HUVA |
| Code point | U+11644 (decimal 71236) |
| Block | Modi (U+11600βU+1165F) |
| General category | Lo: Other letter |
| Script | Modi |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Modi
- U+1163C Modi Vowel Sign Au
- U+1163D Modi Sign Anusvara
- U+1163E Modi Sign Visarga
- U+1163F Modi Sign Virama
- U+11640 Modi Sign Ardhacandra
- π U+11641 Modi Danda
- π U+11642 Modi Double Danda
- π U+11643 Modi Abbreviation Sign
- π U+11650 Modi Digit Zero
- π U+11651 Modi Digit One
- π U+11652 Modi Digit Two
- π U+11653 Modi Digit Three
- π U+11654 Modi Digit Four
- π U+11655 Modi Digit Five
- π U+11656 Modi Digit Six
- π U+11657 Modi Digit Seven
All 79 characters: Modi.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑙄 (decimal) or 𑙄 (hex).
- What is the UTF-8 encoding of U+11644?
- F0 91 99 84 (hex), 4 bytes. In a URL it is %F0%91%99%84.
- How do I write U+11644 in JavaScript or Python?
- JavaScript: \u{11644} or \uD805\uDE44. Python: \U00011644.
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