[jboss-jira] [JBoss JIRA] (DROOLS-674) Rules with bigdecimal comparison not matched for certain values
Joseph Alex (JIRA)
issues at jboss.org
Fri Jan 2 23:56:29 EST 2015
[ https://issues.jboss.org/browse/DROOLS-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029729#comment-13029729 ]
Joseph Alex edited comment on DROOLS-674 at 1/2/15 11:55 PM:
-------------------------------------------------------------
We have a lot of spreadsheets with 100+ rules in each.
was (Author: infiniuser):
Thanks, we use decision tables. Does it mean each entry has to be suffixed with B manually in the spreadsheet or is there a better way? The variable that's mapped to these values is already defined as a BigDecimal.
> Rules with bigdecimal comparison not matched for certain values
> ---------------------------------------------------------------
>
> Key: DROOLS-674
> URL: https://issues.jboss.org/browse/DROOLS-674
> Project: Drools
> Issue Type: Bug
> Affects Versions: 5.5.0.Final, 6.2.0.CR3
> Reporter: Joseph Alex
> Assignee: Mario Fusco
> Priority: Minor
> Attachments: BigDecimalTestFragment.java
>
>
> For rules which compare BigDecimal inputs against a range considering 2 decimal place precision, match does not happen when the input equals certain upper bounds. Testcase attached.
> The rules match when the upper bound is specified with a < condition instead of <= (i.e <70.00 instead of <=69.99) , which seem to indicate value seen by Drools is somewhere between the two.
> Envrionment:
> Drools : 5.5.0.Final
> Java version : Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> OS : CentOS release 6.1 (Final)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list