MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / modulo

Function modulo

out/cli.cjs:2382–2388  ·  view source on GitHub ↗
(x5, y6)

Source from the content-addressed store, hash-verified

2380 return x5 < 0 ? -1 : 1;
2381 }
2382 function modulo(x5, y6) {
2383 const signMightNotMatch = x5 % y6;
2384 if (sign(y6) !== sign(signMightNotMatch)) {
2385 return signMightNotMatch + y6;
2386 }
2387 return signMightNotMatch;
2388 }
2389 function censorNegativeZero(x5) {
2390 return x5 === 0 ? 0 : x5;
2391 }

Callers 1

createIntegerConversionFunction · 0.85

Calls 1

signFunction · 0.85

Tested by

no test coverage detected