Format, asPercentage and asCurrency function in automation smart values provides inconsistent results when the digit of the value is 5.

XMLWordPrintable

    • Minor

      Issue Summary

      Format and asCurrency function in automation smart values provides inconsistent results when the digit of the value is 5.

      Steps to Reproduce

      • Create an automation rule 
      • Add a log action with the expression as below:
        • {{eachNumber}} --> Formatted:{{eachNumber.asNumber.format("0.00")}}
      • It returns the following results:
        • 0.155 --> Formatted: 0.15 
          0.165 --> Formatted: 0.17
      • The asPercentage function works as expected for most values except some for ex: 0.145 which is rounded down as 0.14.

      Expected Results

      The format function doesn't return consistent results i.e. it isn't rounding UP values.

      Actual Results

      The format function should round up values when the last digit of the value is 5.

      Workaround

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

              Assignee:
              Unassigned
              Reporter:
              Ashish Gupta
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: