Question
3
Replies
170
Views
Deloitte
Posted: February 26, 2018
Last activity: February 27, 2018
how to convert Date fields to packed decimals in Pega
I need to convert data fields to packed decimal in pega. When we try the method in a java step we see the below error. if anyone knows how to read the publicAPI methods this may work. Here is the Error;
Error: The method toPackedDecimal(int, String, int, int) is undefined for the type PublicAPI.
Hi Alejandro,
The syntax of using toPackedDecimal method from com.pega.pegarules.pub.util.StringUtils class as follows,
aPackedString
- string containing decimal value.isSigned
- whether produce signed value or notdigits
- number of digits in the whole part of the numberdecimals
- the number of implied decimal places.