MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

deps/v8/test/mjsunit/number-tostring-subnormal.js:14–16  ·  view source on GitHub ↗
(binaryStringValue, double)

Source from the content-addressed store, hash-verified

12const zeros = count => '0'.repeat(count);
13
14const test = (binaryStringValue, double) => {
15 assertEquals(binaryStringValue, double.toString(2));
16};
17
18// 2**-1074
19test(`0.${zeros(1073)}1`, Number.MIN_VALUE);

Callers 1

Calls 2

assertEqualsFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…