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

Inconsistent rounding of decimal value for Currency and Number

SA-66322

Summary



Inconsistent rounding of decimal value for the controls of type Currency and Number. Even when the rounding method is set to 'Default', different values display different values for the same property.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Create a decimal property
  2. Refer the property in a control of type Number with Edit option as read-only
  3. Set the rounding method to 'Default' and decimal places to 0
  4. Set property value to 1.5, 2.5, ..... 9.5  and compare results in the read-only field


Root Cause



A defect in Pegasystems’ code or rules.


Resolution

Perform the following local-change:
  1. Add the decimal precision at the property level
  2. Navigate to the Advanced tab of the property
  3. Add 'pyDecimalPrecision' in the qualifier and provide the decimal values that must be rounded after the decimal

 

Published October 31, 2018 - Updated October 8, 2020

Was this useful?

0% 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