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 fields rounded incorrectly for 15 digits field value



Decimal fields are rounded off incorrectly when the field value is more than 15 digits.

For example,

Enter 987654321987654321.12345 value in the field and save the draft. On clicking the field again, the value changes to 987654321987654270.00

The field type is decimal and the property has the Qualifier as 2 for pyDecimalPrecision.

Before save:

After save:

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a property as a decimal with pyDecimalPrecision set as 2 in the property Qualifier.
  2. Include the property in the section as Text input with format as number, with separators and default rounding.
  3. Enter the value in the field.
  4. Click outside the field. Click in the field again.

Root Cause

A defect in Pegasystems’ code or rules:

Decimal data type was used to contain the number that was passed to the formatting function. This data type did not contain large enough numbers for this use case.


Apply HFix-51885.

Published August 15, 2019 - 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