π is the Unicode character CUNEIFORM NUMERIC SIGN TWO GESHU, code point U+1241F (decimal 74783) 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 9F.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1241F |
| Decimal | 74783 |
| UTF-8 bytes | F0 92 90 9F |
| UTF-16 (big-endian) | D809 DC1F |
| UTF-32 | 0001241F |
| HTML decimal | 𒐟 |
| HTML hex | 𒐟 |
| CSS | \1241F |
| JavaScript | \u{1241F} or \uD809\uDC1F |
| JSON | \uD809\uDC1F |
| Python | \U0001241F |
| Python by name | \N{CUNEIFORM NUMERIC SIGN TWO GESHU} |
| Java, C# | \uD809\uDC1F |
| Rust, Swift | \u{1241F} |
| Go, C, C++ | \U0001241F |
| URL (percent-encoded) | %F0%92%90%9F |
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 TWO GESHU |
| Code point | U+1241F (decimal 74783) |
| Block | Cuneiform Numbers and Punctuation (U+12400βU+1247F) |
| General category | Nl: Letter number |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.0 |
Nearby in Cuneiform Numbers and Punctuation
- π 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+1241E Cuneiform Numeric Sign One 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
- π§ U+12427 Cuneiform Numeric Sign Five 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+1241F?
- F0 92 90 9F (hex), 4 bytes. In a URL it is %F0%92%90%9F.
- How do I write U+1241F in JavaScript or Python?
- JavaScript: \u{1241F} or \uD809\uDC1F. Python: \U0001241F.
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