bbgo_origin/bbgo/parse.go

13 lines
155 B
Go
Raw Normal View History

2020-06-08 02:42:50 +00:00
package bbgo
import "strconv"
func MustParseFloat(s string) float64 {
v, err := strconv.ParseFloat(s, 64)
if err != nil {
panic(err)
}
return v
}