MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / oracle

Function oracle

test/big-decimal/utils.test.ts:99–99  ·  view source on GitHub ↗
(n: bigint)

Source from the content-addressed store, hash-verified

97
98 test('exact digit count across every power-of-ten boundary and the 2^53 seam', () => {
99 const oracle = (n: bigint) => (n < 0n ? -n : n).toString(10).length;
100 for (let k = 0n; k <= 30n; k++) {
101 const p = 10n ** k;
102 for (let d = -2n; d <= 2n; d++) {

Callers 1

utils.test.tsFile · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected