golang decimal float64 code example Example: golang parse float64 f, err := strconv.ParseFloat("3.1415", 64)