CyberDefinitions.com

Double-Struck-Capital-P (ℙ)

Codes for the "Double-Struck-Capital-P" Symbol

homesymbolsspecial
Click on a green box to copy its contents.
Formal Name:
Double-Struck-Capital-P
The symbol:
The Alt Code:
Alt 8473
The HTML Code:
ℙ
HTML Entity:
ℙ
CSS Code:
\2119
Hex Code:
ℙ
Unicode:
U+2119
Double-Struck-Capital-P

Test Your Knowledge of the Special Symbols

Here is a quick quiz to test your knowledge of the most commonly used special symbols.
Getting ready...

View the Symbol in Different Sizes and Fonts

ABC ℙ 123
ABC ℙ 123
AttributeSettingChange
Font Size
Font Family
Arial
Color/Colour
#000000
 
 
 

Video Explaining How to Insert Special Symbols

This video explains 7 ways to insert a special symbol into an MS Office application (e.g., Word) or a website using HTML, CSS, or JavaScript:

How To Insert the ℙ Symbol

(Method 1) Copy and paste the symbol.

Click on the ℙ symbol from the table above. Press the "Copy" button, and then paste the symbol into your document.

(Method 2) Use the "Alt Code."

The Alt Code for ℙ is Alt 8473. If you have a keyboard with a numeric pad, you can use this method. Simply hold down the Alt Key and type 8473. When you lift the Alt Key, ℙ appears. ("Num Lock" must be on.)

(Method 3) Use the HTML Decimal Code (for webpages).

HTML TextOutput
ℙ

(Method 4) Use the HTML Entity Code (for webpages).

HTML TextOutput
ℙ

(Method 5) Use the CSS Code (for webpages).

CSS and HTML TextOutput
<style>
span:after {
content: "\2119";}
</style>
<span>Symbol:</span>
Symbol: ℙ

(Method 6) Use the HTML Hex Code (for webpages and HTML canvas).

HTML TextOutput
&#x2119;
On the assumption that you already have your canvas and the context set up, use the Hex code in the format 0x2119 to place the ℙ symbol on your canvas. For example:
JavaScript Text
const x = "0x"+"2119"
ctx.fillText(String.fromCodePoint(x), 5, 5);
Output

(Method 7) Use the Unicode (for various, e.g. Microsoft Office, JavaScript, Perl).

The Unicode for ℙ is U+2119. The important part is the hexadecimal number after the U+, which is used in various formats. For example, in Microsoft Office applications (e.g. Word, PowerPoint), do the following:
TypeOutput
2119
[Hold down Alt]
[Press x]

(Note that you can omit any leading zeros.)
In JavaScript, the syntax is \uXXXX. So, our example would be \u2119. (Note that the format is 4 hexadecimal characters.)
JavaScript TextOutput
let str = "\u2119"
document.write("My symbol: " + str)
My symbol: ℙ

(Method 8) Use an Image (for various).

HTML TextOutput
<img src = "myImg.png"/>

You might also like...

Help Us Improve Cyber Definitions

  • Do you disagree with something on this page?
  • Did you spot a typo?
  • Do you know a slang term that we've missed?
Please tell us using this form.

Share This Page

share icon

If you like Cyber Definitions (or this page in particular), please link to it or share it with others. If you do, please tell us. It helps us a lot!

Create a QR Code

create QR code

Use our handy widget to create a QR code for this page...or any page.