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
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.