Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created September 18, 2014 04:29
Show Gist options
  • Select an option

  • Save zeroeth/da9de65eaf605033e8e3 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/da9de65eaf605033e8e3 to your computer and use it in GitHub Desktop.
mod out
C:
4 % 15 = 4
4 % -15 = 4
-4 % 15 = -4
-4 % -15 = -4
Ruby:
4 % 15 = 4
4 % -15 = -11
-4 % 15 = 11
-4 % -15 = -4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment