π is the Unicode character LINEAR A SIGN A703 D, code point U+10742 (decimal 67394) in the Linear A block, added in Unicode 7.0. In HTML write 𐝂, and in UTF-8 it is the 4 bytes F0 90 9D 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10742 |
| Decimal | 67394 |
| UTF-8 bytes | F0 90 9D 82 |
| UTF-16 (big-endian) | D801 DF42 |
| UTF-32 | 00010742 |
| HTML decimal | 𐝂 |
| HTML hex | 𐝂 |
| CSS | \10742 |
| JavaScript | \u{10742} or \uD801\uDF42 |
| JSON | \uD801\uDF42 |
| Python | \U00010742 |
| Python by name | \N{LINEAR A SIGN A703 D} |
| Java, C# | \uD801\uDF42 |
| Rust, Swift | \u{10742} |
| Go, C, C++ | \U00010742 |
| URL (percent-encoded) | %F0%90%9D%82 |
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 | LINEAR A SIGN A703 D |
| Code point | U+10742 (decimal 67394) |
| Block | Linear A (U+10600βU+1077F) |
| General category | Lo: Other letter |
| Script | Linear A |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Linear A
- π± U+10731 Linear A Sign A659
- π² U+10732 Linear A Sign A660
- π³ U+10733 Linear A Sign A661
- π΄ U+10734 Linear A Sign A662
- π΅ U+10735 Linear A Sign A663
- πΆ U+10736 Linear A Sign A664
- π U+10740 Linear A Sign A701 A
- π U+10741 Linear A Sign A702 B
- π U+10743 Linear A Sign A704 E
- π U+10744 Linear A Sign A705 F
- π U+10745 Linear A Sign A706 H
- π U+10746 Linear A Sign A707 J
- π U+10747 Linear A Sign A708 K
- π U+10748 Linear A Sign A709 L
- π U+10749 Linear A Sign A709-2 L2
- π U+1074A Linear A Sign A709-3 L3
All 340 characters: Linear A.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐝂 (decimal) or 𐝂 (hex).
- What is the UTF-8 encoding of U+10742?
- F0 90 9D 82 (hex), 4 bytes. In a URL it is %F0%90%9D%82.
- How do I write U+10742 in JavaScript or Python?
- JavaScript: \u{10742} or \uD801\uDF42. Python: \U00010742.
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