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

Function sign

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

Source from the content-addressed store, hash-verified

2377 return censorNegativeZero(Math.trunc(n2));
2378 }
2379 function sign(x5) {
2380 return x5 < 0 ? -1 : 1;
2381 }
2382 function modulo(x5, y6) {
2383 const signMightNotMatch = x5 % y6;
2384 if (sign(y6) !== sign(signMightNotMatch)) {

Callers 1

moduloFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected