Support Article
Decimal fields rounded incorrectly for 15 digits field value
SA-80412
Summary
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
- Create a property as a decimal with pyDecimalPrecision set as 2 in the property Qualifier.
- Include the property in the section as Text input with format as number, with separators and default rounding.
- Enter the value in the field.
- 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.
Resolution
Apply HFix-51885.
Published August 15, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.