mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
division int solution fix
This commit is contained in:
@@ -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) + "=\\)"
|
||||
|
||||
Reference in New Issue
Block a user