Round and asPercentage math expressions are using rounding mode as RoundingMode.HALF_EVEN instead of RoundingMode.HALF_UP

XMLWordPrintable

    • Minor

      Issue Summary

      Round and asPercentage math expressions are using rounding mode as RoundingMode.HALF_EVEN instead of RoundingMode.HALF_UP for values ending with the digit as 5.

      Steps to Reproduce

      • Create an automation rule 
      • Add a log action with the expression as below:
        • {{#=}}ROUND(0.625,2){{/}}
      • It returns the result as .62 i.e. the value is rounded down instead of rounding up.

      Expected Results

      For values including digit 5 as the last digit, the results should be rounded up.

      Actual Results

      The expression is rounding down the values as HALF_EVEN rounding mode is performed.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Stephen Wrathall (Inactive)
              Reporter:
              Ashish Gupta
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: