MCPcopy Index your code
hub / github.com/ccxt/ccxt / mul

Method mul

java/lib/src/main/java/io/github/ccxt/base/Precise.java:43–47  ·  view source on GitHub ↗
(Precise other)

Source from the content-addressed store, hash-verified

41
42 // ---------- ops ----------
43 public Precise mul(Precise other) {
44 BigInteger integer = this.integer.multiply(other.integer);
45 int decimals = toInt(this.decimals) + toInt(other.decimals);
46 return new Precise(integer.toString(), decimals);
47 }
48
49 public Precise div(Precise other) {
50 return div(other, 18);

Callers 1

stringMulMethod · 0.45

Calls 3

toIntMethod · 0.95
multiplyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected