-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Rule - Smart Values
-
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
- is related to
-
AUTO-1862 Format, asPercentage and asCurrency function in automation smart values provides inconsistent results when the digit of the value is 5.
-
- Gathering Impact
-