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

Method __abs__

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

Source from the content-addressed store, hash-verified

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):
33 return F(pow(self.value, other.value), pow(self.full, other.full))
34 def __cmp__(self, other):

Callers

nothing calls this directly

Calls 1

FClass · 0.70

Tested by

no test coverage detected