Support Article

toDecimal function not working in localization

SA-38186

Summary



toDecimal function is changing the value based on the locale.

When the locale is English the expected value is returned, but when the nl-NL locale is used, value is modified.


Error Messages



Not Applicable


Steps to Reproduce

  1. Use toDecimal function to set value of a decimal property from another decimal property keeping browser language as en_US.
  2. Observe the value on screen
  3. Now change the browser locale to nl_NL and try repeating the same steps and then observe the value.


Root Cause



A defect in Pegasystems’ code or rules.toDecimal function is performing localized conversions.

Resolution



Apply HFix-34455.

Published May 18, 2017 - Updated June 6, 2017

Have a question? Get answers now.

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