Created
April 24, 2013 18:16
-
-
Save geko727/5454258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ctof(g) | |
#return ((g*9)/5)+32 | |
return ((((g*9)/5)+32)*10).round / 10.0 | |
end | |
ctof(100.43) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jajajaja!
Me gusto muy al grano.
Para mega refactorizar, yo solo quitaría el return y sería un "Best Practices"