MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / evenRound

Function evenRound

out/cli.cjs:2370–2375  ·  view source on GitHub ↗
(x5)

Source from the content-addressed store, hash-verified

2368 return options.globals.Number(value);
2369 }
2370 function evenRound(x5) {
2371 if (x5 > 0 && x5 % 1 === 0.5 && (x5 & 1) === 0 || x5 < 0 && x5 % 1 === -0.5 && (x5 & 1) === 1) {
2372 return censorNegativeZero(Math.floor(x5));
2373 }
2374 return censorNegativeZero(Math.round(x5));
2375 }
2376 function integerPart(n2) {
2377 return censorNegativeZero(Math.trunc(n2));
2378 }

Callers 2

createIntegerConversionFunction · 0.85
createLongLongConversionFunction · 0.85

Calls 1

censorNegativeZeroFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…