I am trying to write a program in python 2.7 that will first see if a number divides the other evenly, and if it does get the result of the division.
However, I am getting some interesting results when I use large numbers.
Currently I am using:
from __future__ import division
print 'True' #to quickly see if the if loop was invoked
That's a crazy way to do it. Just use the remainder operator.
if a % b == 0: # then b divides a evenly quotient = a // b