service to calculate exponent of a number

Hi,
could some one help me in creatig a service to calculate a power of a number

like (num1)pow(num2)
both num1 and num2 is a float.

I suggest you to create a java service
with one of these java functions:

java.lang.Math.pow(double, double) //Supports float for the power
or
java.math.BigDecimal.pow(int n) //more accurate I think

Java service is good option

If you are not that much good in java,Create a flow service which take number & power value as input
make use use of reapt flow step and multiply it

But you know java service perfoms in better way

Thanks
Sai