π is the Unicode character OLD PERSIAN NUMBER HUNDRED, code point U+103D5 (decimal 66517) in the Old Persian block, added in Unicode 4.1. In HTML write 𐏕, and in UTF-8 it is the 4 bytes F0 90 8F 95.
Codes
| Where | How to write it |
|---|---|
| Code point | U+103D5 |
| Decimal | 66517 |
| UTF-8 bytes | F0 90 8F 95 |
| UTF-16 (big-endian) | D800 DFD5 |
| UTF-32 | 000103D5 |
| HTML decimal | 𐏕 |
| HTML hex | 𐏕 |
| CSS | \103D5 |
| JavaScript | \u{103D5} or \uD800\uDFD5 |
| JSON | \uD800\uDFD5 |
| Python | \U000103D5 |
| Python by name | \N{OLD PERSIAN NUMBER HUNDRED} |
| Java, C# | \uD800\uDFD5 |
| Rust, Swift | \u{103D5} |
| Go, C, C++ | \U000103D5 |
| URL (percent-encoded) | %F0%90%8F%95 |
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 | OLD PERSIAN NUMBER HUNDRED |
| Code point | U+103D5 (decimal 66517) |
| Block | Old Persian (U+103A0βU+103DF) |
| General category | Nl: Letter number |
| Script | Old Persian |
| Bidirectional class | L: Left-to-right |
| Numeric value | 100 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.1 |
Nearby in Old Persian
- π U+103CD Old Persian Sign Dahyaaush-2
- π U+103CE Old Persian Sign Baga
- π U+103CF Old Persian Sign Buumish
- π U+103D0 Old Persian Word Divider
- π U+103D1 Old Persian Number One
- π U+103D2 Old Persian Number Two
- π U+103D3 Old Persian Number Ten
- π U+103D4 Old Persian Number Twenty
All 50 characters: Old Persian.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐏕 (decimal) or 𐏕 (hex).
- What is the UTF-8 encoding of U+103D5?
- F0 90 8F 95 (hex), 4 bytes. In a URL it is %F0%90%8F%95.
- How do I write U+103D5 in JavaScript or Python?
- JavaScript: \u{103D5} or \uD800\uDFD5. Python: \U000103D5.
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