You don't need to import anything, or adjust the namespace of your application. The pow function is a static method (as are most if not all methods in this class) of the Math class. Ex:
double result = Math.pow(5, 2);
result would equal 25. Note that the return is a double.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment