round() Returns Incorrect Results: Looking for Reliable Rounding Method

Certified Associate Developer

Hi everyone,

I’m currently experiencing an issue where the round() function does not return the expected results.
Below are some examples. In case 2, the expected result is 512.93, but Appian returns 512.92.
Additionally, in case 3, even when applying the workaround recommended in KB-1426, the output is still not correct.

KB1426 document : community.appian.com/.../kb-1426-unexpected-results-on-decimal-calculations-and-rounding

If the round() function cannot reliably produce correct rounding results in cases like these,
is there any known alternative approach — such as a custom Expression Rule or reusable utility — to achieve accurate decimal rounding in Appian?

I’m looking for:

  • A method that consistently returns mathematically correct rounding results

  • A reusable rule that avoids floating-point precision issues

  • Any best practices other users may have implemented for similar cases

Any suggestions, patterns, or examples would be greatly appreciated.

Thank you.

Hatsune

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data