Commit 0faf6a86 authored by Cerlane Leong's avatar Cerlane Leong 💬

python experiment

parent 40392d4c
......@@ -826,6 +826,8 @@ class posit8:
else:
a.v = _softposit.p8_add(self.v, other.v)
return a
def __radd__(self, other):
return self.__add__(other)
def __sub__(self, other):
a = posit8(0)
if isinstance(other, (int)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment