π is the Unicode character BLACK RIGHT-POINTING ISOSCELES RIGHT TRIANGLE, code point U+1F782 (decimal 128898) in the Geometric Shapes Extended block, added in Unicode 7.0. In HTML write 🞂, and in UTF-8 it is the 4 bytes F0 9F 9E 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F782 |
| Decimal | 128898 |
| UTF-8 bytes | F0 9F 9E 82 |
| UTF-16 (big-endian) | D83D DF82 |
| UTF-32 | 0001F782 |
| HTML decimal | 🞂 |
| HTML hex | 🞂 |
| CSS | \1F782 |
| JavaScript | \u{1F782} or \uD83D\uDF82 |
| JSON | \uD83D\uDF82 |
| Python | \U0001F782 |
| Python by name | \N{BLACK RIGHT-POINTING ISOSCELES RIGHT TRIANGLE} |
| Java, C# | \uD83D\uDF82 |
| Rust, Swift | \u{1F782} |
| Go, C, C++ | \U0001F782 |
| URL (percent-encoded) | %F0%9F%9E%82 |
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 | BLACK RIGHT-POINTING ISOSCELES RIGHT TRIANGLE |
| Code point | U+1F782 (decimal 128898) |
| Block | Geometric Shapes Extended (U+1F780βU+1F7FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Geometric Shapes Extended
- π U+1F780 Black Left-Pointing Isosceles Right Triangle
- π U+1F781 Black Up-Pointing Isosceles Right Triangle
- π U+1F783 Black Down-Pointing Isosceles Right Triangle
- π U+1F784 Black Slightly Small Circle
- π U+1F785 Medium Bold White Circle
- π U+1F786 Bold White Circle
- π U+1F787 Heavy White Circle
- π U+1F788 Very Heavy White Circle
- π U+1F789 Extremely Heavy White Circle
- π U+1F78A White Circle Containing Black Small Circle
All 120 characters: Geometric Shapes Extended.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 🞂 (decimal) or 🞂 (hex).
- What is the UTF-8 encoding of U+1F782?
- F0 9F 9E 82 (hex), 4 bytes. In a URL it is %F0%9F%9E%82.
- How do I write U+1F782 in JavaScript or Python?
- JavaScript: \u{1F782} or \uD83D\uDF82. Python: \U0001F782.
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