diff --git a/zutils/parse.go b/zutils/parse.go index 0624605e512b2c6dfff2fa6d3a0d8a43a4632ff1..45430a9e9dbd2e4fe953fe278a3bf45017cd9c9b 100644 --- a/zutils/parse.go +++ b/zutils/parse.go @@ -7,6 +7,11 @@ func ParseFloat(s string) float64 { return f } +func ParseFloatN(s string, bitSize int) float64 { + f, _ := strconv.ParseFloat(s, bitSize) + + return f +} func ParseInt(s string) int { f, _ := strconv.ParseInt(s, 10, 32)