MCPcopy Create free account
hub / github.com/ccxt/ccxt / equals

Method equals

python/ccxt/base/precise.py:169–172  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

167 self.integer = int(string[:i + 1])
168
169 def equals(self, other):
170 self.reduce()
171 other.reduce()
172 return self.decimals == other.decimals and self.integer == other.integer
173
174 def __str__(self):
175 self.reduce()

Callers 3

__eq__Method · 0.95
string_equalsMethod · 0.45
string_eqMethod · 0.45

Calls 1

reduceMethod · 0.95

Tested by

no test coverage detected