Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Decimal precision lost after calculations



Calculations using numbers with large number of digits to the right of the decimal indicator, are truncating the result values to fewer decimal digits.

And also loosing the result precision which is required by the application.

Error Messages

No error messages.

Steps to Reproduce

  1. Execute an activity which uses the @Divide(dividend,divisor) form of the function.
  2. Review the result returned by the function.

Root Cause

The Divide function determines a default precision of the function result.  Sometimes, the default precision is not the precision which is required by the application.


When the default is not satisfactory, use the @Divide(dividend, divisor, scale) form of the function where the scale specifies the desired result precision.


Published January 31, 2016 - Updated December 2, 2021

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us