MCPcopy Create free account
hub / github.com/ccxt/ccxt / stringDiv

Method stringDiv

ts/src/base/Precise.ts:185–194  ·  view source on GitHub ↗
(string1: Str, string2: Str, precision = 18)

Source from the content-addressed store, hash-verified

183 }
184
185 static stringDiv (string1: Str, string2: Str, precision = 18) {
186 if ((string1 === undefined) || (string2 === undefined)) {
187 return undefined;
188 }
189 const string2Precise = new Precise (string2);
190 if (string2Precise.integer === zero) {
191 return undefined;
192 }
193 return (new Precise (string1)).div (string2Precise, precision).toString ();
194 }
195
196 static stringAdd (string1: Str, string2: Str) {
197 if ((string1 === undefined) || (string2 === undefined)) {

Callers 15

parseTradingFeesMethod · 0.45
parseTradingFeeMethod · 0.45
parseDustTradeMethod · 0.45
parseAccountPositionMethod · 0.45
parsePositionRiskMethod · 0.45
parsePositionMethod · 0.45
fetchMarketsMethod · 0.45
parseTradingFeeMethod · 0.45
fetchTradingFeesMethod · 0.45
createOrderMethod · 0.45
editOrderMethod · 0.45
parseOrderMethod · 0.45

Calls 2

toStringMethod · 0.45
divMethod · 0.45

Tested by

no test coverage detected