Question 3 Replies 766 Views × Close popover Justin Connell (JustinC2) PNC Financial Services Group PNC Financial Services Group US View Profile Send Message JustinC2 Member since 2015 2 posts PNC Financial Services Group Posted: April 9, 2018 Last activity: May 9, 2018 Posted: 9 Apr 2018 13:23 EDT Last activity: 9 May 2018 5:37 EDT Closed Power Function I am trying to create a function that raises a base to a power. I have come across the following link: https://pdn.pega.com/comment/105854 I have tried to add the function to the library as described, but am receiving an error that "This method must return a result of type Double". Any help would be greatly appreciated Data Integration Java and Activities Share × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 3 years ago Posted: 11 Apr 2018 8:43 EDT × Close popover Carissa Wenhardt (CarissaW_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. US View Profile Send Message CarissaW_GCS PEGA replied to JustinC2 Do you have a return statement in your function code? return java.lang.Math.pow(base,power); Posted: 3 years ago Posted: 11 Apr 2018 9:11 EDT × Close popover Arun Kumar Mahanty (Arun_Mahanty) PEGA Principal Technical Solutions Engineer Pegasystems Inc. IN View Profile Send Message Arun_Mahanty PEGA replied to JustinC2 You can go through below discussion as a reference let us know if it helps https://pdn.pega.com/community/product-support/question/power-function-data-transfrom Posted: 3 years ago Posted: 9 May 2018 5:37 EDT × Close popover anand managoli (anandm42) Adqura Business Architect Adqura IN View Profile Send Message anandm42 Adqura replied to JustinC2 I had similar requirements and somehow the expression builder doesn't show up pow(x,y) function. But it is available for the strategies and can be accessed directly as @pow(a,b).