Rounding

Report a typo

What output data will be printed after executing the code below?

...

func main() {
    number := math.Pi

    fmt.Println(math.Round(number))
    fmt.Println(math.Ceil(number))
    fmt.Println(math.Floor(number))
}

Tip: Remember that math.Pi is approximately 3.14159....

Select one option from the list
___

Create a free account to access the full topic