Skip to content

Commit

Permalink
float parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbressler committed Jun 9, 2015
1 parent fdb5209 commit e950849
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import (
"sync"
)

func ParseFloat(s string) float64 {
frac, _ := strconv.ParseFloat(s, 64)
return frac

}

//RunningMean is a thread safe strut for keeping track of running means as used in
//importance calculations. (TODO: could this be made lock free?)
type RunningMean struct {
Expand Down

0 comments on commit e950849

Please sign in to comment.