[rules-users] [rules user] different behavior on double type

Zeke xanadu860122 at gmail.com
Thu Apr 5 00:06:46 EDT 2012


Thanks for all your replies. I'm sorry for bring up this issue again. I
tried the Drools 5.3.0.Final. For float and double type, I think current
behavior is what I need. But for BigDecimal type, when my condition is "bd
== 99.9" ("bd" equals new BigDecimal("99.9")), the condition is false. But
if I add quotes to the literal as bd == "99.9", the condition will be true.
Is this behavior is designed to be so? It seems 99.9 will be considered as
double value, while "99.9" will be considered as a BigDecimal value.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120405/010f5c29/attachment.html 


More information about the rules-users mailing list