go convert a string (with decimals) to a floating point number. code example
Example 1: go convert a string (with decimals) to a floating point number.
f, err := strconv.ParseFloat(s, 64)
Example 2: go convert floating point number, to a string, with decimal digits.
s := fmt.Sprintf("%.2f", x)