MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / floorDiv

Function floorDiv

agent/compact.go:21–27  ·  view source on GitHub ↗
(value, divisor int)

Source from the content-addressed store, hash-verified

19}
20
21func floorDiv(value, divisor int) int {
22 result := value / divisor
23 if value%divisor != 0 && ((value < 0) != (divisor < 0)) {
24 result--
25 }
26 return result
27}
28
29func pythonSliceEnd(length, end int) int {
30 if end < 0 {

Callers 1

TruncateResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected