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

Method toEn

java/lib/src/main/java/io/github/ccxt/exchanges/PhemexCore.java:1334–1342  ·  view source on GitHub ↗
(Object n, Object scale)

Source from the content-addressed store, hash-verified

1332 }
1333
1334 public Object toEn(Object n, Object scale)
1335 {
1336 Object stringN = this.numberToString(n);
1337 var precise = new Precise(((String)stringN));
1338 precise.decimals = Helpers.subtract(precise.decimals, scale);
1339 precise.reduce();
1340 Object preciseString = String.valueOf(precise);
1341 return this.parseToNumeric(preciseString);
1342 }
1343
1344 public Object toEv(Object amount, Object... optionalArgs)
1345 {

Callers 4

toEvMethod · 0.95
toEpMethod · 0.95
createConvertTradeMethod · 0.95
fetchConvertQuoteMethod · 0.45

Calls 4

subtractMethod · 0.95
reduceMethod · 0.95
numberToStringMethod · 0.45
parseToNumericMethod · 0.45

Tested by

no test coverage detected