pow: Returns base raised to the exp power (base exp). A domain error may occur if base is zero and exp is less than or equal to zero. It will also happen if base is negative and exp is not an integer. A range error is possible.
double pow(double base, double exp);
pow(2, 2);
savvy wrote:can also be used if you want to get the square of a number... "pow(int,2);"
Users browsing this forum: No registered users and 1 guest