In order to use the pow() function, you must first import the dart:math package.
Read moreHow do you use sqrt?
The sqrt() function is defined in math. h header file. To find the square root of int , float or long double data types, you can explicitly convert the type to double using cast operator . int x = 0; double result; result = sqrt(double(x));
Read more