Pleccative
pleccative is a zero-dependency Python library implementing pleccative numbers, with a numeric interface modelled after Python's built-in complex type.
What are pleccative numbers?
Pleccative numbers are an internet maths meme—a playful "what if?" rather than real mathematics—that imagines a third kind of number sitting alongside positive and negative.
Normally, numbers live on a straight line going two ways from zero: positive (+) and negative (-). Pleccative numbers turn that line into a three-way fork, adding a pleccative direction (|) so all three signs radiate out from 0 evenly, 120° apart:
| Sign | Symbol | Direction | Example |
|---|---|---|---|
| Positive | + |
0° | +3 |
| Negative | - |
120° | -3 |
| Pleccative | | |
240° | |3 |
Zero sits right in the middle and is shared by all three (0).
Where did this come from?
The meme kicked off on 2 December 2026 with a viral post on X by Snowval (@kittenfacerb) declaring "i made a third type of number" alongside a three-way number line introducing |1, |2, |3, and so on.
In classic internet fashion, communities such as r/mathmemes and r/mathematics immediately ran with the joke, trying to hammer out working arithmetic rules for a completely made-up number system, and Lessons in Meme Culture covered the phenomenon in "They Invented A Third Number".
Because pleccative numbers began as a meme rather than a textbook definition, people online have proposed several competing rule sets. This library implements a clean, self-consistent three-way system built around 120° sign rotations and cancellation.
How it works
Multiplying, dividing, and powers
Multiplying two pleccative numbers multiplies their sizes as usual and steps the sign around the three-way circle:
| × | + |
- |
| |
|---|---|---|---|
+ |
+ |
- |
| |
- |
- |
| |
+ |
| |
| |
+ |
- |
That gives the signature pleccative surprises:
- Negative × Negative = Pleccative (
-2 * -3 == |6) - Negative × Pleccative = Positive (
-2 * |3 == +6) - Pleccative × Pleccative = Negative (
|2 * |3 == -6)
Division simply undoes multiplication, and raising a negative or pleccative number to integer powers cycles its sign every three steps (so (-2) ** 2 == |4 and (-2) ** 3 == +8).
Adding, subtracting, and pleccating
- Same sign: sizes add together (
|2 + |3 == |5). - Different signs, same size: they cancel each other out to zero (
+3 + -3 == 0,+3 + |3 == 0,-3 + |3 == 0). - Different signs, different sizes: the bigger number wins and shrinks by the smaller one (
+5 + |2 == +3,|5 + -2 == |3).
Two unary operators rotate a number's sign around the three directions:
-xsteps the sign forward by one third of a turn (+→-→|→+), the same as multiplying by-1.~xsteps it the other way (+→|→-→+), the same as multiplying by|1.
From those come subtraction (a - b, defined as a + (-b)) and binary pleccation (a | b, defined as a + (~b)).
A few fun quirks
With three signs instead of two, a couple of familiar school-maths habits break down: every non-zero number has two different opposites that cancel it to zero (+3 + -3 == 0 and +3 + |3 == 0), and grouping matters when adding mixed signs (((+5) + (-3)) + (|2) gives 0, whereas (+5) + ((-3) + (|2)) gives +4).
Quick taste
from pleccative import Pleccative
a = Pleccative("|3")
b = Pleccative(-2)
print(a) # |3
print(b * b) # |4 (negative * negative = pleccative)
print(a * b) # +6 (pleccative * negative = positive)
print(a * a) # -9 (pleccative * pleccative = negative)
print(a + 5) # +2 (different signs cancel)
print(-b) # |2 (step sign forward: - -> |)
print(~a) # -3 (step sign back: | -> -)
Head over to Getting Started to install pleccative and explore the full API.