MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / convertToBase

Method convertToBase

__test__/theorem.js:1312–1315  ·  view source on GitHub ↗
(x, n)

Source from the content-addressed store, hash-verified

1310 BigNumber.set(obj)
1311 }
1312 convertToBase(x, n) {
1313 const BN = BigNumber.clone({ ALPHABET: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/" })
1314 return new BN(x).toString(n)
1315 }
1316 get fn() {
1317 return this.prototype
1318 }

Callers 1

test.jsFile · 0.80

Calls 2

cloneMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected