MCPcopy
hub / github.com/ccxt/ccxt / stringMul

Method stringMul

java/lib/src/main/java/io/github/ccxt/base/Precise.java:223–228  ·  view source on GitHub ↗
(Object string1, Object string2)

Source from the content-addressed store, hash-verified

221
222 // -------- static string ops --------
223 public static String stringMul(Object string1, Object string2) {
224 if (string1 == null || string2 == null) return null;
225 return new Precise(String.valueOf(string1))
226 .mul(new Precise(String.valueOf(string2)))
227 .toString();
228 }
229
230 public static String stringDiv(Object string1, Object string2) {
231 return stringDiv(string1, string2, 18);

Callers 15

safeOrderMethod · 0.95
calculateFeeWithRateMethod · 0.95
safeLiquidationMethod · 0.95
safeTradeMethod · 0.95
safeTickerMethod · 0.95
safePositionMethod · 0.95
createOrderRequestMethod · 0.95
parseLedgerEntryMethod · 0.95
parsePositionRiskMethod · 0.95
parseAccountPositionMethod · 0.95
parseTickerMethod · 0.95
scaleNumberMethod · 0.95

Calls 2

toStringMethod · 0.45
mulMethod · 0.45

Tested by 3

testTickerMethod · 0.76
testLiquidationMethod · 0.76
testPreciseMethod · 0.76