π is the Unicode character CUNEIFORM SIGN BAG3, code point U+12042 (decimal 73794) in the Cuneiform block, added in Unicode 5.0. In HTML write 𒁂, and in UTF-8 it is the 4 bytes F0 92 81 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12042 |
| Decimal | 73794 |
| UTF-8 bytes | F0 92 81 82 |
| UTF-16 (big-endian) | D808 DC42 |
| UTF-32 | 00012042 |
| HTML decimal | 𒁂 |
| HTML hex | 𒁂 |
| CSS | \12042 |
| JavaScript | \u{12042} or \uD808\uDC42 |
| JSON | \uD808\uDC42 |
| Python | \U00012042 |
| Python by name | \N{CUNEIFORM SIGN BAG3} |
| Java, C# | \uD808\uDC42 |
| Rust, Swift | \u{12042} |
| Go, C, C++ | \U00012042 |
| URL (percent-encoded) | %F0%92%81%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 | CUNEIFORM SIGN BAG3 |
| Code point | U+12042 (decimal 73794) |
| Block | Cuneiform (U+12000βU+123FF) |
| General category | Lo: Other letter |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.0 |
Nearby in Cuneiform
- πΊ U+1203A Cuneiform Sign Ash Kaba Tenu
- π» U+1203B Cuneiform Sign Ash Over Ash Tug2 Over Tug2 Tug2 Over Tug2 Pap
- πΌ U+1203C Cuneiform Sign Ash Over Ash Over Ash
- π½ U+1203D Cuneiform Sign Ash Over Ash Over Ash Crossing Ash Over Ash Over Ash
- πΎ U+1203E Cuneiform Sign Ash2
- πΏ U+1203F Cuneiform Sign Ashgab
- π U+12040 Cuneiform Sign Ba
- π U+12041 Cuneiform Sign Bad
- π U+12043 Cuneiform Sign Bahar2
- π U+12044 Cuneiform Sign Bal
- π U+12045 Cuneiform Sign Bal Over Bal
- π U+12046 Cuneiform Sign Balag
- π U+12047 Cuneiform Sign Bar
- π U+12048 Cuneiform Sign Bara2
- π U+12049 Cuneiform Sign Bi
- π U+1204A Cuneiform Sign Bi Times A
All 922 characters: Cuneiform.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𒁂 (decimal) or 𒁂 (hex).
- What is the UTF-8 encoding of U+12042?
- F0 92 81 82 (hex), 4 bytes. In a URL it is %F0%92%81%82.
- How do I write U+12042 in JavaScript or Python?
- JavaScript: \u{12042} or \uD808\uDC42. Python: \U00012042.
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