update utils

This commit is contained in:
Gregory Salaun 2024-09-30 23:28:56 +07:00
parent d53369f529
commit 12b8112e81

View File

@ -2,7 +2,6 @@ package main
import (
"log"
"math"
"strconv"
)
@ -27,8 +26,3 @@ func FreqHztoMhz(freq string) string {
return strconv.FormatFloat(frequency, 'f', 6, 64)
}
func roundFloat(val float64, precision uint) float64 {
ratio := math.Pow(10, float64(precision))
return math.Round(val*ratio) / ratio
}