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

Method mul

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

Source from the content-addressed store, hash-verified

78 return self.equals(other)
79
80 def mul(self, other):
81 integer_result = self.integer * other.integer
82 return Precise(integer_result, self.decimals + other.decimals)
83
84 def div(self, other, precision=18):
85 distance = precision - self.decimals + other.decimals

Callers 2

__mul__Method · 0.95
string_mulMethod · 0.45

Calls 1

PreciseClass · 0.70

Tested by

no test coverage detected