Hi,
Is this a bug?
(bind ?a "1114783200000")
(bind ?c "1138958880000")
(printout t "subtract and divide " (integer (- (/ ?c 1000) (/ ?a
1000))) crlf)
(printout t "divide and subtract " (integer (/ (- ?c ?a) 1000)) crlf)
prints
subtract and divide 24175680
divide and subtract 2147483
while
(bind ?a 1114783200000)
(bind ?c 1138958880000)
(printout t "subtract and divide " (integer (- (/ ?c 1000) (/ ?a
1000))) crlf)
(printout t "divide and subtract " (integer (/ (- ?c ?a) 1000)) crlf)
prints
subtract and divide 24175680
divide and subtract 24175680
Actually, in my program, ?a and ?c come from shadow facts and the
variables are bound to variables declared long in the underlying Java
object. They are the arrival time and current time in milliseconds.
Anyway, being declared long, I would expect the behaviour of ?a and ?c
to be like in the second case. But they behave like in the first case.
Regards,
Florian Fischer
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------