[rules-users] BigDecimal comparison

devan.vanreenen at gmail.com devan.vanreenen at gmail.com
Sun Jun 10 13:38:42 EDT 2012


Hi there, 

Please assist.
I have an object MaxCap that has a single property capAmount of type
BigDecimal.
The BigDecimal is negative

when the rule is 

MaxCap( capAmount.doubleValue < 0.00 )  it doesnt fire, which I expect it
should but when the rule is

MaxCap( capAmount.doubleValue > 0.00 )  then the rules fires, so the rule
recognises my negative number as a positive one.

Any help would be appreciated.

Thanks
Devan

--
View this message in context: http://drools.46999.n3.nabble.com/BigDecimal-comparison-tp4017841.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list