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