java 幂运算如何表示

2026年09月24日 06:27
有1个网友回答
网友(1):

Math类中的pow(double m,double n)方法
比如4^3可以写为
double a=Math.pow(4,3);
则a就是结果