Mercurial Hosting > traffic-intelligence
diff c/utils.cpp @ 153:c8a149fccfda
corrected bug in reading floats from text files
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 06 Sep 2011 19:22:24 -0400 |
parents | 7bf8084e720f |
children | bc4ea09b1743 |
line wrap: on
line diff
--- a/c/utils.cpp Tue Sep 06 18:44:23 2011 -0400 +++ b/c/utils.cpp Tue Sep 06 19:22:24 2011 -0400 @@ -19,7 +19,7 @@ ::split(tokens, line, separator); vector<float> numbers; BOOST_FOREACH(string s, tokens) - numbers.push_back(::toInt(s)); + numbers.push_back(::toFloat(s)); if (!numbers.empty()) result.push_back(numbers); }