[rules-users] 'Long' and 'double' value comparing problem in drools 5.1.0
Heinrich_Puschmann
heinrich.puschmann at mercatis.com
Fri Mar 4 08:26:17 EST 2011
Hello pf_miles,
As far as I discovered (no documentation found), Drools' casting mechanism
seems to be different from Java's casting: *the second operator ist cast to
the typeof the first one*, independently of which one is longer or shorter.
When I turned the test around, writing
"when m:Msg(dbl <= lo)"
instead of
"when m:Msg(lo >= dbl)"
everything worked out fine for me.
Heinrich_Puschmann
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Long-and-double-value-comparing-problem-in-drools-5-1-0-tp2630638p2632972.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list