cosmo0920 / windows-pr

A collection of Windows functions, constants and macros predefined for you for win32-api
23 stars 9 forks source link

Stop using eval for float conversion #9

Closed zaphod42 closed 11 years ago

zaphod42 commented 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.