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

Method isRoundNumber

java/lib/src/main/java/io/github/ccxt/Exchange.java:5638–5644  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

5636 }
5637
5638 public Object isRoundNumber(Object value)
5639 {
5640 // this method is similar to isInteger, but this is more loyal and does not check for types.
5641 // i.e. isRoundNumber(1.000) returns true, while isInteger(1.000) returns false
5642 Object res = this.parseToNumeric((Helpers.mod(value, 1)));
5643 return Helpers.isEqual(res, 0);
5644 }
5645
5646 public Object isEmptyString(Object value)
5647 {

Callers 5

parsePositionRiskMethod · 0.45
parseAccountPositionMethod · 0.45
fetchOHLCVMethod · 0.45
parseAccountPositionMethod · 0.45
parsePositionRiskMethod · 0.45

Calls 3

parseToNumericMethod · 0.95
modMethod · 0.95
isEqualMethod · 0.95

Tested by

no test coverage detected