Stop using eval for float conversion

eval() is pretty evil and is overkill for converting a string into a
float. This could also be done with just a little math, which would be
even better, but I think .to_f is clear enough.
Merge pull request #9 from zaphod42/eval-is-evil

Stop using eval for float conversion