package main import ( \"fmt\" \"strconv\" ) func main() { k := 10/3.0 i := fmt.Sprintf(\"%.2f\", k) f,_ := strconv.ParseFloat(i, 2) fmt.Pri
Be careful with longitude and latitude float as truncating and rounding can yield completely different results... as it can put you on the wrong side of a latitude boundary.