Examples using... strconv.ParseFloat()
Recent
ParseFloat converts the string s to a floating-point number
with the precision specified by bitSize: 32 for float32, or 64 for float64.
When bitSize=32, the result still has type float64, but it will be
convertible to float32 without changing its value.
A NumError records a failed conversion.
Parsing numbers from strings is a basic but common task in many programs; here’s how to do it in Go.