MCPcopy Create free account
hub / github.com/breck7/scroll / valueOf

Method valueOf

external/.d3.js:360–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358 return this;
359 }
360 valueOf() {
361 const p = this._partials;
362 let n = this._n, x, y, lo, hi = 0;
363 if (n > 0) {
364 hi = p[--n];
365 while (n > 0) {
366 x = hi;
367 y = p[--n];
368 hi = x + y;
369 lo = y - (hi - x);
370 if (lo) break;
371 }
372 if (n > 0 && ((lo < 0 && p[n - 1] < 0) || (lo > 0 && p[n - 1] > 0))) {
373 y = lo * 2;
374 x = hi + y;
375 if (y == x - hi) hi = x;
376 }
377 }
378 return hi;
379 }
380}
381
382function fsum(values, valueof) {

Callers 8

.scrollLibs.jsFile · 0.80
.dayjs.min.jsFile · 0.80
.prism.jsFile · 0.80
__mlHelperFunction · 0.80
.datatables.jsFile · 0.80
keyofFunction · 0.80
internFunction · 0.80
BtFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected