Skip to content

Instantly share code, notes, and snippets.

@geko727
Created April 24, 2013 18:16
Show Gist options
  • Save geko727/5454258 to your computer and use it in GitHub Desktop.
Save geko727/5454258 to your computer and use it in GitHub Desktop.
def ctof(g)
#return ((g*9)/5)+32
return ((((g*9)/5)+32)*10).round / 10.0
end
ctof(100.43)
@airvzxf
Copy link

airvzxf commented Apr 24, 2013

Jajajaja!
Me gusto muy al grano.

Para mega refactorizar, yo solo quitaría el return y sería un "Best Practices"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment