π is the Unicode character CUNEIFORM NUMERIC SIGN TWO N46 FLAT, code point U+12685 (decimal 75397) in the Archaic Cuneiform Numerals block, added in Unicode 18.0. In HTML write 𒚅, and in UTF-8 it is the 4 bytes F0 92 9A 85.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12685 |
| Decimal | 75397 |
| UTF-8 bytes | F0 92 9A 85 |
| UTF-16 (big-endian) | D809 DE85 |
| UTF-32 | 00012685 |
| HTML decimal | 𒚅 |
| HTML hex | 𒚅 |
| CSS | \12685 |
| JavaScript | \u{12685} or \uD809\uDE85 |
| JSON | \uD809\uDE85 |
| Python | \U00012685 |
| Python by name | \N{CUNEIFORM NUMERIC SIGN TWO N46 FLAT} |
| Java, C# | \uD809\uDE85 |
| Rust, Swift | \u{12685} |
| Go, C, C++ | \U00012685 |
| URL (percent-encoded) | %F0%92%9A%85 |
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 N46 FLAT |
| Code point | U+12685 (decimal 75397) |
| Block | Archaic Cuneiform Numerals (U+12550βU+1268F) |
| 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 | 18.0 |
Nearby in Archaic Cuneiform Numerals
- π½ U+1267D Cuneiform Numeric Sign Three N19 Flat
- πΎ U+1267E Cuneiform Numeric Sign Four N19 Flat
- πΏ U+1267F Cuneiform Numeric Sign Five N19 Flat
- π U+12680 Cuneiform Numeric Sign Six N19 Flat
- π U+12681 Cuneiform Numeric Sign Seven N19 Flat
- π U+12682 Cuneiform Numeric Sign Eight N19 Flat
- π U+12683 Cuneiform Numeric Sign Nine N19 Flat
- π U+12684 Cuneiform Numeric Sign One N46 Flat
- π U+12686 Cuneiform Numeric Sign One N36 Flat
All 311 characters: Archaic Cuneiform Numerals.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 𒚅 (decimal) or 𒚅 (hex).
- What is the UTF-8 encoding of U+12685?
- F0 92 9A 85 (hex), 4 bytes. In a URL it is %F0%92%9A%85.
- How do I write U+12685 in JavaScript or Python?
- JavaScript: \u{12685} or \uD809\uDE85. Python: \U00012685.
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