π is the Unicode character SHARADA DIGIT SEVEN, code point U+111D7 (decimal 70103) in the Sharada block, added in Unicode 6.1. In HTML write 𑇗, and in UTF-8 it is the 4 bytes F0 91 87 97.
Codes
| Where | How to write it |
|---|---|
| Code point | U+111D7 |
| Decimal | 70103 |
| UTF-8 bytes | F0 91 87 97 |
| UTF-16 (big-endian) | D804 DDD7 |
| UTF-32 | 000111D7 |
| HTML decimal | 𑇗 |
| HTML hex | 𑇗 |
| CSS | \111D7 |
| JavaScript | \u{111D7} or \uD804\uDDD7 |
| JSON | \uD804\uDDD7 |
| Python | \U000111D7 |
| Python by name | \N{SHARADA DIGIT SEVEN} |
| Java, C# | \uD804\uDDD7 |
| Rust, Swift | \u{111D7} |
| Go, C, C++ | \U000111D7 |
| URL (percent-encoded) | %F0%91%87%97 |
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 | SHARADA DIGIT SEVEN |
| Code point | U+111D7 (decimal 70103) |
| Block | Sharada (U+11180βU+111DF) |
| General category | Nd: Decimal digit |
| Script | Sharada |
| Bidirectional class | L: Left-to-right |
| Numeric value | 7 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 6.1 |
Nearby in Sharada
- U+111CF Sharada Sign Inverted Candrabindu
- π U+111D0 Sharada Digit Zero
- π U+111D1 Sharada Digit One
- π U+111D2 Sharada Digit Two
- π U+111D3 Sharada Digit Three
- π U+111D4 Sharada Digit Four
- π U+111D5 Sharada Digit Five
- π U+111D6 Sharada Digit Six
- π U+111D8 Sharada Digit Eight
- π U+111D9 Sharada Digit Nine
- π U+111DA Sharada Ekam
- π U+111DB Sharada Sign Siddham
- π U+111DC Sharada Headstroke
- π U+111DD Sharada Continuation Sign
- π U+111DE Sharada Section Mark-1
- π U+111DF Sharada Section Mark-2
All 96 characters: Sharada.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑇗 (decimal) or 𑇗 (hex).
- What is the UTF-8 encoding of U+111D7?
- F0 91 87 97 (hex), 4 bytes. In a URL it is %F0%91%87%97.
- How do I write U+111D7 in JavaScript or Python?
- JavaScript: \u{111D7} or \uD804\uDDD7. Python: \U000111D7.
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