Commits

Anonymous committed 4eaf602

update for go.weekly.2011-12-06

Comments (0)

Files changed (1)

 func (self *Config) Float(section string, option string) (value float64, err error) {
 	sv, err := self.String(section, option)
 	if err == nil {
-		value, err = strconv.Atof64(sv)
+		value, err = strconv.ParseFloat(sv, 64)
 	}
 
 	return value, err