π is the Unicode character CUNEIFORM SIGN UM TIMES ME, code point U+12398 (decimal 74648) in the Cuneiform block, added in Unicode 7.0. In HTML write 𒎘, and in UTF-8 it is the 4 bytes F0 92 8E 98.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12398 |
| Decimal | 74648 |
| UTF-8 bytes | F0 92 8E 98 |
| UTF-16 (big-endian) | D808 DF98 |
| UTF-32 | 00012398 |
| HTML decimal | 𒎘 |
| HTML hex | 𒎘 |
| CSS | \12398 |
| JavaScript | \u{12398} or \uD808\uDF98 |
| JSON | \uD808\uDF98 |
| Python | \U00012398 |
| Python by name | \N{CUNEIFORM SIGN UM TIMES ME} |
| Java, C# | \uD808\uDF98 |
| Rust, Swift | \u{12398} |
| Go, C, C++ | \U00012398 |
| URL (percent-encoded) | %F0%92%8E%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 SIGN UM TIMES ME |
| Code point | U+12398 (decimal 74648) |
| Block | Cuneiform (U+12000βU+123FF) |
| General category | Lo: Other letter |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Cuneiform
- π U+12390 Cuneiform Sign Nin9
- π U+12391 Cuneiform Sign Ninda2 Times Bal
- π U+12392 Cuneiform Sign Ninda2 Times Gi
- π U+12393 Cuneiform Sign Nu11 Rotated Ninety Degrees
- π U+12394 Cuneiform Sign Pesh2 Asterisk
- π U+12395 Cuneiform Sign Pir2
- π U+12396 Cuneiform Sign Sag Times Igi Gunu
- π U+12397 Cuneiform Sign Ti2
- π U+12399 Cuneiform Sign U U
All 922 characters: Cuneiform.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𒎘 (decimal) or 𒎘 (hex).
- What is the UTF-8 encoding of U+12398?
- F0 92 8E 98 (hex), 4 bytes. In a URL it is %F0%92%8E%98.
- How do I write U+12398 in JavaScript or Python?
- JavaScript: \u{12398} or \uD808\uDF98. Python: \U00012398.
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