package main import ( "fmt" "math" ) func main() { x := 3.7 fmt.Println(x) fmt.Println(math.Floor(x)) fmt.Println(math.Ceil(x)) // Floor rounds DOWN to a whole number; Ceil rounds UP. }