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

Method __add__

recipes/Python/265894_Floating_Point_Simulator/recipe-265894.py:20–21  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

18 return (self, F(other))
19 return (self, other)
20 def __add__(self, other):
21 return F(self.value + other.value, self.full + other.full)
22 def __sub__(self, other):
23 return F(self.value - other.value, self.full - other.full)
24 def __mul__(self, other):

Callers

nothing calls this directly

Calls 1

FClass · 0.70

Tested by

no test coverage detected