π is the Unicode character TAKRI DIGIT ONE, code point U+116C1 (decimal 71361) in the Takri block, added in Unicode 6.1. In HTML write 𑛁, and in UTF-8 it is the 4 bytes F0 91 9B 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+116C1 |
| Decimal | 71361 |
| UTF-8 bytes | F0 91 9B 81 |
| UTF-16 (big-endian) | D805 DEC1 |
| UTF-32 | 000116C1 |
| HTML decimal | 𑛁 |
| HTML hex | 𑛁 |
| CSS | \116C1 |
| JavaScript | \u{116C1} or \uD805\uDEC1 |
| JSON | \uD805\uDEC1 |
| Python | \U000116C1 |
| Python by name | \N{TAKRI DIGIT ONE} |
| Java, C# | \uD805\uDEC1 |
| Rust, Swift | \u{116C1} |
| Go, C, C++ | \U000116C1 |
| URL (percent-encoded) | %F0%91%9B%81 |
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 | TAKRI DIGIT ONE |
| Code point | U+116C1 (decimal 71361) |
| Block | Takri (U+11680βU+116CF) |
| General category | Nd: Decimal digit |
| Script | Takri |
| Bidirectional class | L: Left-to-right |
| Numeric value | 1 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 6.1 |
Nearby in Takri
- U+116B3 Takri Vowel Sign Ai
- U+116B4 Takri Vowel Sign O
- U+116B5 Takri Vowel Sign Au
- U+116B6 Takri Sign Virama
- U+116B7 Takri Sign Nukta
- πΈ U+116B8 Takri Letter Archaic Kha
- πΉ U+116B9 Takri Abbreviation Sign
- π U+116C0 Takri Digit Zero
- π U+116C2 Takri Digit Two
- π U+116C3 Takri Digit Three
- π U+116C4 Takri Digit Four
- π U+116C5 Takri Digit Five
- π U+116C6 Takri Digit Six
- π U+116C7 Takri Digit Seven
- π U+116C8 Takri Digit Eight
- π U+116C9 Takri Digit Nine
All 68 characters: Takri.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑛁 (decimal) or 𑛁 (hex).
- What is the UTF-8 encoding of U+116C1?
- F0 91 9B 81 (hex), 4 bytes. In a URL it is %F0%91%9B%81.
- How do I write U+116C1 in JavaScript or Python?
- JavaScript: \u{116C1} or \uD805\uDEC1. Python: \U000116C1.
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