Ceil returns the least integer value greater than or equal to x.
package main import ( "fmt" "math" ) func main() { c := math.Ceil(1.49) fmt.Printf("%.1f", c) }