Although this does not answer the question (why), I found this page in search of a round function, so in case someone finds it useful, this is my own solution:
func Round(val float64) (float64) {
if float64(int(val)) < val {
return float64(int(val) + 1)
}
return val
}
source
share