Question
3
Replies
756
Views
Posted: April 9, 2018
Last activity: May 9, 2018
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
Do you have a return statement in your function code?
return java.lang.Math.pow(base,power);