I'm using Jess 4.1.
I get an error when trying to use the "-" operator with negative
numbers.
Is this a bug?

To work around this problem, I am trying to use the abs function to
convert the negative number to a positive.

What is wrong with this rule?
(defrule set_abs
        (number ?num&:(< ?num 0))
        =>
        (assert (abs_num (abs ?num)))
)

Thanks
Christo
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to