mparlak / Flee

Fast Lightweight Expression Evaluator
607 stars 119 forks source link

boolean expression with decimals #108

Open jpoorrandp opened 7 months ago

jpoorrandp commented 7 months ago

Is it possible to use decimal type in a boolean expression such as:: "myDecVar >= 10.0" ?

If MyDecVar is something like 3.1, flee throws an error, saying:

"Error: CompareElement: Operation 'GreaterThanOrEqual' is not defined for types 'Decimal' and 'Double'"

Same for GreaterThan and Equals.

Works fine with integers. Is there a way to use decimals this way in flee, or should I just convert to decimals. Thanks Jonathan