fixed negative result

since to_f doesn't work with numbers with commas.
Merge pull request #1 from jsha1/patch-1

fixed negative result