From dbbb0d6e3f607ce4682a6394a76c8e60ca2d160b Mon Sep 17 00:00:00 2001 From: lukew3 Date: Thu, 17 Dec 2020 21:21:20 -0500 Subject: [PATCH] Fixed incorrectly removed int division in division --- mathgenerator/funcs/basic_math/division.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathgenerator/funcs/basic_math/division.py b/mathgenerator/funcs/basic_math/division.py index b98001d..c87de2b 100644 --- a/mathgenerator/funcs/basic_math/division.py +++ b/mathgenerator/funcs/basic_math/division.py @@ -7,7 +7,7 @@ def divisionToIntFunc(maxA=25, maxB=25, style='raw'): divisor = a * b dividend = random.choice([a, b]) - quotient = divisor / dividend + quotient = divisor // dividend if style == 'latex': problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)"