Golang Round Float zur Anzahl der Diitigs -Präzision
// Rounds float64 number to nbDigits
func Round(num float64, nbDigits float64) float64 {
pow := math.Pow(10., nbDigits)
rounded := float64(int(num*pow)) / pow
return rounded
}
smjure