Closed zaphod42 closed 11 years ago
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.
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.