Skip to content

Instantly share code, notes, and snippets.

@SahilC
Created April 17, 2013 12:46
Show Gist options
  • Save SahilC/5403950 to your computer and use it in GitHub Desktop.
Save SahilC/5403950 to your computer and use it in GitHub Desktop.
Find mod of two numbers without mod
def f(nr,dr):
return (nr-dr*(nr/dr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment