π is the Unicode character DIGIT NINE COMMA, code point U+1F10A (decimal 127242) in the Enclosed Alphanumeric Supplement block, added in Unicode 5.2. In HTML write 🄊, and in UTF-8 it is the 4 bytes F0 9F 84 8A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F10A |
| Decimal | 127242 |
| UTF-8 bytes | F0 9F 84 8A |
| UTF-16 (big-endian) | D83C DD0A |
| UTF-32 | 0001F10A |
| HTML decimal | 🄊 |
| HTML hex | 🄊 |
| CSS | \1F10A |
| JavaScript | \u{1F10A} or \uD83C\uDD0A |
| JSON | \uD83C\uDD0A |
| Python | \U0001F10A |
| Python by name | \N{DIGIT NINE COMMA} |
| Java, C# | \uD83C\uDD0A |
| Rust, Swift | \u{1F10A} |
| Go, C, C++ | \U0001F10A |
| URL (percent-encoded) | %F0%9F%84%8A |
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 | DIGIT NINE COMMA |
| Code point | U+1F10A (decimal 127242) |
| Block | Enclosed Alphanumeric Supplement (U+1F100βU+1F1FF) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 9 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.2 |
Decomposition
DIGIT NINE COMMA has a compatibility decomposition (compat) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Enclosed Alphanumeric Supplement
- π U+1F102 Digit One Comma
- π U+1F103 Digit Two Comma
- π U+1F104 Digit Three Comma
- π U+1F105 Digit Four Comma
- π U+1F106 Digit Five Comma
- π U+1F107 Digit Six Comma
- π U+1F108 Digit Seven Comma
- π U+1F109 Digit Eight Comma
- π U+1F10B Dingbat Circled Sans-Serif Digit Zero
- π U+1F10C Dingbat Negative Circled Sans-Serif Digit Zero
- π U+1F10D Circled Zero With Slash
- π U+1F10E Circled Anticlockwise Arrow
- π U+1F10F Circled Dollar Sign With Overlaid Backslash
- π U+1F110 Parenthesized Latin Capital Letter A
- π U+1F111 Parenthesized Latin Capital Letter B
- π U+1F112 Parenthesized Latin Capital Letter C
All 201 characters: Enclosed Alphanumeric Supplement.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 🄊 (decimal) or 🄊 (hex).
- What is the UTF-8 encoding of U+1F10A?
- F0 9F 84 8A (hex), 4 bytes. In a URL it is %F0%9F%84%8A.
- How do I write U+1F10A in JavaScript or Python?
- JavaScript: \u{1F10A} or \uD83C\uDD0A. Python: \U0001F10A.
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