Skip to content

Commit 5af282f

Browse files
committed
fix: Decimal value and float
1 parent b98e175 commit 5af282f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

execution_engine/converter/criterion.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ def parse_value(
9999
eps = float(value_numeric) / 1e5
100100
match value.comparator:
101101
case "<=" | "<":
102-
value_max = value_numeric - (eps if value.comparator == "<" else 0)
102+
value_max = float(value_numeric) - (
103+
eps if value.comparator == "<" else 0
104+
)
103105
value_numeric = None
104106
case ">=" | ">":
105-
value_min = value_numeric + (eps if value.comparator == "<" else 0)
107+
value_min = float(value_numeric) + (
108+
eps if value.comparator == "<" else 0
109+
)
106110
value_numeric = None
107111
case _:
108112
raise ValueError(f'Unknown quantity operator: "{value.comparator}"')

0 commit comments

Comments
 (0)