Currently, math.Pow()
and math.sqrt
take float64
type arguments.
Do we have equivalent functions that take int
type arguments?
Currently, math.Pow()
and math.sqrt
take float64
type arguments.
Do we have equivalent functions that take int
type arguments?
What you can do is type-cast a float to your value.
int a=10,b=2;
math.Pow(float(a),float(b));