Commit 15680ee4 authored by Cerlane Leong's avatar Cerlane Leong 💬

posit8 divide typo

parent ae59c24c
This diff is collapsed.
......@@ -157,7 +157,7 @@ class posit8:
except TypeError:
print("TypeError: Unsupported operand type(s) for /: posit8 and ",other.type())
def __truediv__(self, other):
return self.__div(other)
return self.__div__(other)
def __rdiv__(self, other):
try:
a = posit8(0)
......
This diff is collapsed.
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