π is the Unicode character CUNEIFORM NUMERIC SIGN NIGIDAMIN, code point U+12456 (decimal 74838) 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 96.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12456 |
| Decimal | 74838 |
| UTF-8 bytes | F0 92 91 96 |
| UTF-16 (big-endian) | D809 DC56 |
| UTF-32 | 00012456 |
| HTML decimal | 𒑖 |
| HTML hex | 𒑖 |
| CSS | \12456 |
| JavaScript | \u{12456} or \uD809\uDC56 |
| JSON | \uD809\uDC56 |
| Python | \U00012456 |
| Python by name | \N{CUNEIFORM NUMERIC SIGN NIGIDAMIN} |
| Java, C# | \uD809\uDC56 |
| Rust, Swift | \u{12456} |
| Go, C, C++ | \U00012456 |
| URL (percent-encoded) | %F0%92%91%96 |
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 NIGIDAMIN |
| Code point | U+12456 (decimal 74838) |
| 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+1244E Cuneiform Numeric Sign Six Ash Tenu
- π U+1244F Cuneiform Numeric Sign One Ban2
- π U+12450 Cuneiform Numeric Sign Two Ban2
- π U+12451 Cuneiform Numeric Sign Three Ban2
- π U+12452 Cuneiform Numeric Sign Four Ban2
- π U+12453 Cuneiform Numeric Sign Four Ban2 Variant Form
- π U+12454 Cuneiform Numeric Sign Five Ban2
- π U+12455 Cuneiform Numeric Sign Five Ban2 Variant Form
- π U+12457 Cuneiform Numeric Sign Nigidaesh
- π U+12458 Cuneiform Numeric Sign One Eshe3
- π U+12459 Cuneiform Numeric Sign Two Eshe3
- π U+1245A Cuneiform Numeric Sign One Third Dish
- π U+1245B Cuneiform Numeric Sign Two Thirds Dish
- π U+1245C Cuneiform Numeric Sign Five Sixths Dish
- π U+1245D Cuneiform Numeric Sign One Third Variant Form A
- π U+1245E Cuneiform Numeric Sign Two Thirds Variant Form A
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+12456?
- F0 92 91 96 (hex), 4 bytes. In a URL it is %F0%92%91%96.
- How do I write U+12456 in JavaScript or Python?
- JavaScript: \u{12456} or \uD809\uDC56. Python: \U00012456.
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