Skip to content

Instantly share code, notes, and snippets.

@hectorsq
Created January 25, 2009 20:18
Show Gist options
  • Select an option

  • Save hectorsq/52511 to your computer and use it in GitHub Desktop.

Select an option

Save hectorsq/52511 to your computer and use it in GitHub Desktop.
>> puts 5 / 3 # 1.6 rounded to −∞ = 1
1
=> nil
>> puts -5 / 3 # -1.6 rounded to −∞ = -2
-2
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment