π is the Unicode character CUNEIFORM NUMERIC SIGN SEVEN VARIANT FORM IMIN A, code point U+12442 (decimal 74818) 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 91 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12442 |
| Decimal | 74818 |
| UTF-8 bytes | F0 92 91 82 |
| UTF-16 (big-endian) | D809 DC42 |
| UTF-32 | 00012442 |
| HTML decimal | 𒑂 |
| HTML hex | 𒑂 |
| CSS | \12442 |
| JavaScript | \u{12442} or \uD809\uDC42 |
| JSON | \uD809\uDC42 |
| Python | \U00012442 |
| Python by name | \N{CUNEIFORM NUMERIC SIGN SEVEN VARIANT FORM IMIN A} |
| Java, C# | \uD809\uDC42 |
| Rust, Swift | \u{12442} |
| Go, C, C++ | \U00012442 |
| URL (percent-encoded) | %F0%92%91%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 NUMERIC SIGN SEVEN VARIANT FORM IMIN A |
| Code point | U+12442 (decimal 74818) |
| Block | Cuneiform Numbers and Punctuation (U+12400βU+1247F) |
| General category | Nl: Letter number |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Numeric value | 7 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.0 |
Nearby in Cuneiform Numbers and Punctuation
- πΊ U+1243A Cuneiform Numeric Sign Three Variant Form Esh16
- π» U+1243B Cuneiform Numeric Sign Three Variant Form Esh21
- πΌ U+1243C Cuneiform Numeric Sign Four Variant Form Limmu
- π½ U+1243D Cuneiform Numeric Sign Four Variant Form Limmu4
- πΎ U+1243E Cuneiform Numeric Sign Four Variant Form Limmu A
- πΏ U+1243F Cuneiform Numeric Sign Four Variant Form Limmu B
- π U+12440 Cuneiform Numeric Sign Six Variant Form Ash9
- π U+12441 Cuneiform Numeric Sign Seven Variant Form Imin3
- π U+12443 Cuneiform Numeric Sign Seven Variant Form Imin B
- π U+12444 Cuneiform Numeric Sign Eight Variant Form Ussu
- π U+12445 Cuneiform Numeric Sign Eight Variant Form Ussu3
- π U+12446 Cuneiform Numeric Sign Nine Variant Form Ilimmu
- π U+12447 Cuneiform Numeric Sign Nine Variant Form Ilimmu3
- π U+12448 Cuneiform Numeric Sign Nine Variant Form Ilimmu4
- π U+12449 Cuneiform Numeric Sign Nine Variant Form Ilimmu A
- π U+1244A Cuneiform Numeric Sign Two Ash Tenu
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+12442?
- F0 92 91 82 (hex), 4 bytes. In a URL it is %F0%92%91%82.
- How do I write U+12442 in JavaScript or Python?
- JavaScript: \u{12442} or \uD809\uDC42. Python: \U00012442.
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