[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1899) Max accumulate function is not working for negative integers
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Thu Dec 18 10:28:54 EST 2008
[ https://jira.jboss.org/jira/browse/JBRULES-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli closed JBRULES-1899.
----------------------------------
Resolution: Done
Fixed.
> Max accumulate function is not working for negative integers
> ------------------------------------------------------------
>
> Key: JBRULES-1899
> URL: https://jira.jboss.org/jira/browse/JBRULES-1899
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-core (expert)
> Affects Versions: 4.0.7, 5.0.0.M3
> Reporter: Edson Tirelli
> Assignee: Edson Tirelli
> Fix For: 4.0.8, 5.0.0.CR1
>
>
> Some smart guy decided to name the following constants with the same name, but completely different semantics:
> Long:
> static long MIN_VALUE
> A constant holding the minimum value a long can have, -2^63.
> Double:
> static double MIN_VALUE
> A constant holding the smallest POSITIVE nonzero value of type double, 2^-1074.
> Sure enough, I was using Double.MIN_VALUE thinking it was the smalles NEGATIVE number, the same way as Long.MIN_VALUE, and that screwed the max function implementation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list