github.com/signintech/pdft@v0.5.0/minigopdf/fontmaker/core/math.go (about) 1 package core 2 3 func Round(value float64) int { 4 if value < 0.0 { 5 value -= 0.5 6 } else { 7 value += 0.5 8 } 9 return int(value) 10 }