Hi all.

Here are a couple of "simple" questions that I only have a feeling
as to why they don't work, but I think that they should :)

1) If I create a new string that only contains numbers and assert
    that fact, JESS automatically tries to convert it to a number. But
    since it is a "very" large number the value inside JESS becomes
    infinity. Would it be better to keep it as a string if the conversion failed??
    This is probably a non interesting question...
    Ex.
        String largeNumberString = new String("123456789...allNumsInHere...90");
        jessEngine.executeCommand("(assert (foo " + largeNumberString + ") )");

2) How can I retract a fact that contains a multivariable?
    The commented code to retract the fact does not work,
    but I can print the values.

(defrule TEST01
        (foo $?values)
        ; ?factID <- (foo $?values)
=>
        (printout t "TEST01,"
                        $?values
                        crlf)
        ; (retract ?factID)
)

Thanks for your time,
Alan.
begin:vcard 
n:Barton;Alan
x-mozilla-html:FALSE
org:National Research Council
adr:;;Rm 282, Bldg M-50, Montreal Road;Ottawa;Ontario;K1A 0R6;Canada
version:2.1
email;internet:[EMAIL PROTECTED]
title:<A HREF="http://gulf.uvic.ca/~abarton">Alan's Homepage</A>
tel;fax:(613) 952-7151
tel;work:(613) 993-8562
note:<A HREF="http://ai.iit.nrc.ca/IR_public/people/students/alan.html">Work page</A>
x-mozilla-cpt:;0
fn:Alan Barton
end:vcard

Reply via email to