RE: matheval update

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu