From 9842169143340b36b38c5a3ad7323f311f3afa10 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Thu, 17 Dec 2020 21:28:21 -0500 Subject: [PATCH] division int solution fix --- 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 c87de2b..0faf5f8 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 = int(divisor / dividend) if style == 'latex': problem = "\\(" + str(divisor) + "\\div" + str(dividend) + "=\\)"