π is the Unicode character KAKTOVIK NUMERAL FOUR, code point U+1D2C4 (decimal 119492) in the Kaktovik Numerals block, added in Unicode 15.0. In HTML write 𝋄, and in UTF-8 it is the 4 bytes F0 9D 8B 84.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D2C4 |
| Decimal | 119492 |
| UTF-8 bytes | F0 9D 8B 84 |
| UTF-16 (big-endian) | D834 DEC4 |
| UTF-32 | 0001D2C4 |
| HTML decimal | 𝋄 |
| HTML hex | 𝋄 |
| CSS | \1D2C4 |
| JavaScript | \u{1D2C4} or \uD834\uDEC4 |
| JSON | \uD834\uDEC4 |
| Python | \U0001D2C4 |
| Python by name | \N{KAKTOVIK NUMERAL FOUR} |
| Java, C# | \uD834\uDEC4 |
| Rust, Swift | \u{1D2C4} |
| Go, C, C++ | \U0001D2C4 |
| URL (percent-encoded) | %F0%9D%8B%84 |
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 | KAKTOVIK NUMERAL FOUR |
| Code point | U+1D2C4 (decimal 119492) |
| Block | Kaktovik Numerals (U+1D2C0βU+1D2DF) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Numeric value | 4 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 15.0 |
Nearby in Kaktovik Numerals
- π U+1D2C0 Kaktovik Numeral Zero
- π U+1D2C1 Kaktovik Numeral One
- π U+1D2C2 Kaktovik Numeral Two
- π U+1D2C3 Kaktovik Numeral Three
- π U+1D2C5 Kaktovik Numeral Five
- π U+1D2C6 Kaktovik Numeral Six
- π U+1D2C7 Kaktovik Numeral Seven
- π U+1D2C8 Kaktovik Numeral Eight
- π U+1D2C9 Kaktovik Numeral Nine
- π U+1D2CA Kaktovik Numeral Ten
- π U+1D2CB Kaktovik Numeral Eleven
- π U+1D2CC Kaktovik Numeral Twelve
All 20 characters: Kaktovik Numerals.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𝋄 (decimal) or 𝋄 (hex).
- What is the UTF-8 encoding of U+1D2C4?
- F0 9D 8B 84 (hex), 4 bytes. In a URL it is %F0%9D%8B%84.
- How do I write U+1D2C4 in JavaScript or Python?
- JavaScript: \u{1D2C4} or \uD834\uDEC4. Python: \U0001D2C4.
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