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

Method abs

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

Source from the content-addressed store, hash-verified

141 }
142
143 public Precise abs() {
144 BigInteger result = (this.integer.compareTo(BigInteger.ZERO) < 0)
145 ? this.integer.negate()
146 : this.integer;
147 return new Precise(result.toString(), this.decimals);
148 }
149
150 public Precise reduce() {
151 String str = this.integer.toString();

Callers 3

mathAbsMethod · 0.45
DecimalToPrecisionMethod · 0.45
stringAbsMethod · 0.45

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected