xaviermontenegro

Untitled

Jul 22nd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from math import floor
  2.  
  3. def modulus(num1, num2):
  4.     quotient = num1 / float(num2)
  5.     remainder = quotient - floor(quotient)
  6.     answer = remainder * num2
  7.     return answer
Add Comment
Please, Sign In to add comment