As you mentioned C++ in the tag, try one of this method:
double pow (double base , double exponent);
float pow (float base , float exponent);
long double pow (long double base, long double exponent);
double pow (Type1 base , Type2 exponent); // additional overloads
Returns base
raised to the power exponent
.
See reference here.
0
solved how can I calculate exponential fraction [duplicate]