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

Executable model generates BigDecimal expressions without using a MathContext

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • executable model
    • None
    • 2022 Week 02-04 (from Jan 10)
    • NEW
    • NEW

      Executable model generates BigDecimal expressions without using a MathContext as conversely normally done by mvel This implies that an operation like "1/3" is converted into a BigDecimal expression like

      new BigDecimal("1").divide(new BigDecimal("3"))

      causingĀ  this error

      java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: