Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-674

Rules with bigdecimal comparison not matched for certain values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 5.5.0.Final, 6.2.0.CR3
    • None
    • None

    Description

      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)

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            infiniuser Joseph Alex (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: