Closed NutmegAdam closed 3 years ago
.75
is simply not a valid value for LambdaParser. Numbers always should start with a digit, so valid number should be 0.75
.
...wow, just what I was afraid of, I did miss something simple. Guess I need more coffee! Thanks very much for the quick feedback.
Hello,
I have been trying to figure out why a more complex expression using vars was failing, but after working it down to a simple example, I still get an unexpected failure:
I have tried using parentheses also, to no avail. It looks from the unit tests that all of the basic operators and such that I'm using are supported (even in the more complex example), so I'm scratching my head hoping it's not something so blindingly obvious that I'm going to feel like an idiot :)
I have used this parser for more complex expressions with no issue, and the only difference in this case that I can discern is that this is a nested operation (whereby 200 / 150 needs to be evaluated, and then the result used for the comparison). But, some of the unit tests seem to indicate this is possible, for example:
So, I'm at a loss! What have I missed?