π is the Unicode character CUNEIFORM NUMERIC SIGN ONE ESHE3, code point U+12458 (decimal 74840) 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 98.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12458 |
| Decimal | 74840 |
| UTF-8 bytes | F0 92 91 98 |
| UTF-16 (big-endian) | D809 DC58 |
| UTF-32 | 00012458 |
| HTML decimal | 𒑘 |
| HTML hex | 𒑘 |
| CSS | \12458 |
| JavaScript | \u{12458} or \uD809\uDC58 |
| JSON | \uD809\uDC58 |
| Python | \U00012458 |
| Python by name | \N{CUNEIFORM NUMERIC SIGN ONE ESHE3} |
| Java, C# | \uD809\uDC58 |
| Rust, Swift | \u{12458} |
| Go, C, C++ | \U00012458 |
| URL (percent-encoded) | %F0%92%91%98 |
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 ESHE3 |
| Code point | U+12458 (decimal 74840) |
| 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+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+12456 Cuneiform Numeric Sign Nigidamin
- π U+12457 Cuneiform Numeric Sign Nigidaesh
- π 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
- π U+1245F Cuneiform Numeric Sign One Eighth Ash
- π U+12460 Cuneiform Numeric Sign One Quarter Ash
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+12458?
- F0 92 91 98 (hex), 4 bytes. In a URL it is %F0%92%91%98.
- How do I write U+12458 in JavaScript or Python?
- JavaScript: \u{12458} or \uD809\uDC58. Python: \U00012458.
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