Fixed incorrectly removed int division in division

This commit is contained in:
lukew3
2020-12-17 21:21:20 -05:00
parent 4aec1db29a
commit dbbb0d6e3f

View File

@@ -7,7 +7,7 @@ def divisionToIntFunc(maxA=25, maxB=25, style='raw'):
divisor = a * b divisor = a * b
dividend = random.choice([a, b]) dividend = random.choice([a, b])
quotient = divisor / dividend quotient = divisor // dividend
if style == 'latex': if style == 'latex':
problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)" problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)"