-1
I will make a calculator that needs potentiation, someone can tell me how it is done on android?
-1
I will make a calculator that needs potentiation, someone can tell me how it is done on android?
1
You can use the static method pow(dobule val1, double val2)
class Math
:
System.out.println(Math.pow(2.0, 3.0)); //2 elevado a 3
Exit:
8.0
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.
Have you seen the Java package for mathematical functions? There is the potentiation method there : Math.Pow
– Jefferson Quesado