π is the Unicode character TAKRI DIGIT NINE, code point U+116C9 (decimal 71369) in the Takri block, added in Unicode 6.1. In HTML write 𑛉, and in UTF-8 it is the 4 bytes F0 91 9B 89.
Codes
| Where | How to write it |
|---|---|
| Code point | U+116C9 |
| Decimal | 71369 |
| UTF-8 bytes | F0 91 9B 89 |
| UTF-16 (big-endian) | D805 DEC9 |
| UTF-32 | 000116C9 |
| HTML decimal | 𑛉 |
| HTML hex | 𑛉 |
| CSS | \116C9 |
| JavaScript | \u{116C9} or \uD805\uDEC9 |
| JSON | \uD805\uDEC9 |
| Python | \U000116C9 |
| Python by name | \N{TAKRI DIGIT NINE} |
| Java, C# | \uD805\uDEC9 |
| Rust, Swift | \u{116C9} |
| Go, C, C++ | \U000116C9 |
| URL (percent-encoded) | %F0%91%9B%89 |
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 NINE |
| Code point | U+116C9 (decimal 71369) |
| Block | Takri (U+11680βU+116CF) |
| General category | Nd: Decimal digit |
| Script | Takri |
| Bidirectional class | L: Left-to-right |
| Numeric value | 9 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 6.1 |
Nearby in Takri
- π U+116C1 Takri Digit One
- π 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
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+116C9?
- F0 91 9B 89 (hex), 4 bytes. In a URL it is %F0%91%9B%89.
- How do I write U+116C9 in JavaScript or Python?
- JavaScript: \u{116C9} or \uD805\uDEC9. Python: \U000116C9.
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