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

OOTB Function toDecimal gives wrong value in German locale



Developer is using a Text Type Property to hold the decimal data. When German users access the PRPC application, value displays incorrectly. For example, in English decimal value is 15.59 but in German it is displayed as 1559.0. Same way the percentage is displayed as 2.9% in English but in German it is displayed as 2900%. In Japaneses and Chinese, the value displays as expected. 

Error Messages

Wrong value is displayed on the screen.

Steps to Reproduce

Run PRPC application German Locale, decimal type data shows incorrectly.

Root Cause

Developer is using the function "toDecimal" present in Pega Out of the Box (OOTB) Library "Pega-RULES:String". He applies this function on the text type property that is holding the decimal type data.

PRPC Developer should understand that, when you access your application in german locale, decimal type value e.g 23.45 in English will display as 23,45 (notice comma in place of dot).

When you use Java String API on these values, in German the out put will change. This is a Java limitation and not a PRPC limitation.


This issue is resolved through the following local change:

To hold decimal type data, in PRPC, developer should define the Property type as Decimal and not Text.
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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