github.com/andrewsun2898/u-root@v6.0.1-0.20200616011413-4b2895c1b815+incompatible/cmds/core/elvish/util/ceildiv.go (about) 1 package util 2 3 // CeilDiv computes ceil(float(a)/b) without using float arithmetics. 4 func CeilDiv(a, b int) int { 5 return (a + b - 1) / b 6 }