Update comprehensive-arithmetic-problems-carries.py
Browse files
comprehensive-arithmetic-problems-carries.py
CHANGED
|
@@ -204,6 +204,13 @@ class ArithmeticProblemsDataset(GeneratorBasedBuilder):
|
|
| 204 |
is_float=is_float2,
|
| 205 |
max_rounding_precision=max_rounding_precision,
|
| 206 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
|
| 208 |
if operator == Operator.SUBTRACT:
|
| 209 |
result = operand1 - operand2
|
|
|
|
| 204 |
is_float=is_float2,
|
| 205 |
max_rounding_precision=max_rounding_precision,
|
| 206 |
)
|
| 207 |
+
else:
|
| 208 |
+
operand2 = self._generate_number(
|
| 209 |
+
min_val=min_value,
|
| 210 |
+
max_val=max_value,
|
| 211 |
+
is_float=is_float2,
|
| 212 |
+
max_rounding_precision=max_rounding_precision,
|
| 213 |
+
)
|
| 214 |
|
| 215 |
if operator == Operator.SUBTRACT:
|
| 216 |
result = operand1 - operand2
|