Decimal fields rounded incorrectly for 15 digits field value
Decimal fields are rounded off incorrectly when the field value is more than 15 digits.
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.
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.
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.
0% found this useful