I have this string "1,090"
I want to convert it to float
v := "1,090"
s, err := strconv.ParseFloat(v, 32)
if err != nil {
fmt.Printf("err: %s
", err)
return
}
fmt.Printf("%T, %v
", s, s)
But it returns an error:
//err: strconv.ParseFloat: parsing "1,090": invalid syntax
So anybody know to convert it to float?