MCPcopy Create free account
hub / github.com/ActiveState/code / __neg__

Method __neg__

recipes/Python/265894_Floating_Point_Simulator/recipe-265894.py:28–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 def __div__(self, other):
27 return F(self.value / other.value, self.full / other.full)
28 def __neg__(self):
29 return F(-self.value, -self.full)
30 def __abs__(self):
31 return F(abs(self.value), abs(self.full))
32 def __pow__(self, other):

Callers

nothing calls this directly

Calls 1

FClass · 0.70

Tested by

no test coverage detected