Check out example codes for "float number golang two dots". It will help you in understanding the concepts better.

Code Example 1

x := 12.3456
fmt.Println(math.Floor(x*100)/100) // 12.34 (round down)
fmt.Println(math.Round(x*100)/100) // 12.35 (round to nearest)
fmt.Println(math.Ceil(x*100)/100)  // 12.35 (round up)

Learn ReactJs, React Native from akashmittal.com