RE: matheval update
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jun 13, 2003
- 482 views
> From: gertie at visionsix.com [mailto:gertie at visionsix.com] > Why does GreaterOrEqual return zero if one of the args is > data? When using fuxxy logic, if these are bytebool, this > function will always return zero if the values are above 2? In fact, that's en error in the documentation. I'd written the code a while back, and was only just now documenting it (bad, bad, bad). I misread what I'd written. GreaterOrEqual() uses Greater() and EqualTo() for it's comparison, and will actually compare a CONSTANT's ARG1 to a DATA's ARG1. This will be corrected, too. (NB: DATA just means that ARG1 is an arbitrary sequence--could be anything--used to pass 'data' for whatever purpose.) I'm not sure what you mean by fuxxy logic or bytebool. These types aren't supported by matheval, although I notice that I didn't follow my own convention of calling eval_addons(). I've fixed this, so you could support this sort of thing as an add on. Thanks for the feedback! Matt Lewis