π is the Unicode character CUNEIFORM NUMERIC SIGN ONE GESHU, code point U+1241E (decimal 74782) in the Cuneiform Numbers and Punctuation block, added in Unicode 5.0. In HTML write 𒐞, and in UTF-8 it is the 4 bytes F0 92 90 9E.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1241E |
| Decimal | 74782 |
| UTF-8 bytes | F0 92 90 9E |
| UTF-16 (big-endian) | D809 DC1E |
| UTF-32 | 0001241E |
| HTML decimal | 𒐞 |
| HTML hex | 𒐞 |
| CSS | \1241E |
| JavaScript | \u{1241E} or \uD809\uDC1E |
| JSON | \uD809\uDC1E |
| Python | \U0001241E |
| Python by name | \N{CUNEIFORM NUMERIC SIGN ONE GESHU} |
| Java, C# | \uD809\uDC1E |
| Rust, Swift | \u{1241E} |
| Go, C, C++ | \U0001241E |
| URL (percent-encoded) | %F0%92%90%9E |
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 NUMERIC SIGN ONE GESHU |
| Code point | U+1241E (decimal 74782) |
| Block | Cuneiform Numbers and Punctuation (U+12400βU+1247F) |
| General category | Nl: Letter number |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Numeric value | 1 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.0 |
Nearby in Cuneiform Numbers and Punctuation
- π U+12416 Cuneiform Numeric Sign Two Gesh2
- π U+12417 Cuneiform Numeric Sign Three Gesh2
- π U+12418 Cuneiform Numeric Sign Four Gesh2
- π U+12419 Cuneiform Numeric Sign Five Gesh2
- π U+1241A Cuneiform Numeric Sign Six Gesh2
- π U+1241B Cuneiform Numeric Sign Seven Gesh2
- π U+1241C Cuneiform Numeric Sign Eight Gesh2
- π U+1241D Cuneiform Numeric Sign Nine Gesh2
- π U+1241F Cuneiform Numeric Sign Two Geshu
- π U+12420 Cuneiform Numeric Sign Three Geshu
- π‘ U+12421 Cuneiform Numeric Sign Four Geshu
- π’ U+12422 Cuneiform Numeric Sign Five Geshu
- π£ U+12423 Cuneiform Numeric Sign Two Shar2
- π€ U+12424 Cuneiform Numeric Sign Three Shar2
- π₯ U+12425 Cuneiform Numeric Sign Three Shar2 Variant Form
- π¦ U+12426 Cuneiform Numeric Sign Four Shar2
All 128 characters: Cuneiform Numbers and Punctuation.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𒐞 (decimal) or 𒐞 (hex).
- What is the UTF-8 encoding of U+1241E?
- F0 92 90 9E (hex), 4 bytes. In a URL it is %F0%92%90%9E.
- How do I write U+1241E in JavaScript or Python?
- JavaScript: \u{1241E} or \uD809\uDC1E. Python: \U0001241E.
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