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

Method mod

java/lib/src/main/java/io/github/ccxt/Helpers.java:351–359  ·  view source on GitHub ↗
(Object a, Object b)

Source from the content-addressed store, hash-verified

349 }
350
351 public static Object mod(Object a, Object b) {
352 if (a == null || b == null) return null;
353 a = normalizeIntIfNeeded(a);
354 b = normalizeIntIfNeeded(b);
355 if (a instanceof String || a instanceof Long || a instanceof Integer || a instanceof Double) {
356 return toDouble(a) % toDouble(b);
357 }
358 return null;
359 }
360
361 public static Object add(Object a, Object b) {
362 a = normalizeIntIfNeeded(a);

Callers 15

isRoundNumberMethod · 0.95
parsePositionRiskMethod · 0.95
parseAccountPositionMethod · 0.95
fetchOrderBookMethod · 0.95
fetchOHLCVMethod · 0.95
parseAccountPositionMethod · 0.95
parsePositionRiskMethod · 0.95
separateBidsOrAsksMethod · 0.95
streamMethod · 0.95
modMethod · 0.95
extendedFieldMethod · 0.45

Calls 2

normalizeIntIfNeededMethod · 0.95
toDoubleMethod · 0.95

Tested by 1

modMethod · 0.76