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

Method neg

python/ccxt/base/precise.py:118–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 return Precise(abs(self.integer), self.decimals)
117
118 def neg(self):
119 return Precise(-self.integer, self.decimals)
120
121 def mod(self, other):
122 rationizerNumberator = max(-self.decimals + other.decimals, 0)

Callers 2

__neg__Method · 0.95
string_negMethod · 0.45

Calls 1

PreciseClass · 0.70

Tested by

no test coverage detected