Member Avatar for chudapati09
chudapati09

Edit: Never mind I figured it out. I used Math.pow(base, exponent) to figure it out

I'm creating a calculator and I can figure out how to the power of two doubles.

This is what I have:

public Power(Double base, Double exponent)
{
   result = base ^ exponent; //result is a double
}