π is the Unicode character LOWER LEFT BLOCK DIAGONAL UPPER MIDDLE LEFT TO LOWER MIDDLE RIGHT, code point U+1FB51 (decimal 129873) in the Symbols for Legacy Computing block, added in Unicode 13.0. In HTML write 🭑, and in UTF-8 it is the 4 bytes F0 9F AD 91.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1FB51 |
| Decimal | 129873 |
| UTF-8 bytes | F0 9F AD 91 |
| UTF-16 (big-endian) | D83E DF51 |
| UTF-32 | 0001FB51 |
| HTML decimal | 🭑 |
| HTML hex | 🭑 |
| CSS | \1FB51 |
| JavaScript | \u{1FB51} or \uD83E\uDF51 |
| JSON | \uD83E\uDF51 |
| Python | \U0001FB51 |
| Python by name | \N{LOWER LEFT BLOCK DIAGONAL UPPER MIDDLE LEFT TO LOWER MIDDLE RIGHT} |
| Java, C# | \uD83E\uDF51 |
| Rust, Swift | \u{1FB51} |
| Go, C, C++ | \U0001FB51 |
| URL (percent-encoded) | %F0%9F%AD%91 |
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 | LOWER LEFT BLOCK DIAGONAL UPPER MIDDLE LEFT TO LOWER MIDDLE RIGHT |
| Code point | U+1FB51 (decimal 129873) |
| Block | Symbols for Legacy Computing (U+1FB00βU+1FBFF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 13.0 |
Nearby in Symbols for Legacy Computing
- π U+1FB49 Lower Right Block Diagonal Lower Centre To Upper Middle Right
- π U+1FB4A Lower Right Block Diagonal Lower Left To Upper Middle Right
- π U+1FB4B Lower Right Block Diagonal Lower Centre To Upper Right
- π U+1FB4C Lower Left Block Diagonal Upper Centre To Upper Middle Right
- π U+1FB4D Lower Left Block Diagonal Upper Left To Upper Middle Right
- π U+1FB4E Lower Left Block Diagonal Upper Centre To Lower Middle Right
- π U+1FB4F Lower Left Block Diagonal Upper Left To Lower Middle Right
- π U+1FB50 Lower Left Block Diagonal Upper Centre To Lower Right
- π U+1FB52 Upper Right Block Diagonal Lower Middle Left To Lower Centre
- π U+1FB53 Upper Right Block Diagonal Lower Middle Left To Lower Right
- π U+1FB54 Upper Right Block Diagonal Upper Middle Left To Lower Centre
- π U+1FB55 Upper Right Block Diagonal Upper Middle Left To Lower Right
- π U+1FB56 Upper Right Block Diagonal Upper Left To Lower Centre
- π U+1FB57 Upper Left Block Diagonal Upper Middle Left To Upper Centre
- π U+1FB58 Upper Left Block Diagonal Upper Middle Left To Upper Right
- π U+1FB59 Upper Left Block Diagonal Lower Middle Left To Upper Centre
All 210 characters: Symbols for Legacy Computing.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 🭑 (decimal) or 🭑 (hex).
- What is the UTF-8 encoding of U+1FB51?
- F0 9F AD 91 (hex), 4 bytes. In a URL it is %F0%9F%AD%91.
- How do I write U+1FB51 in JavaScript or Python?
- JavaScript: \u{1FB51} or \uD83E\uDF51. Python: \U0001FB51.
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