先上图

math.pow(double a,double b)这个方法的参数类型是double
double运算有精度损失
所以自己手动*或者用BigInteger.pow代替math.pow都可以。
博客指出math.pow(double a, double b)方法参数类型为double,而double运算存在精度损失问题,建议手动相乘或者使用BigInteger.pow来替代math.pow以解决精度损失。
先上图

math.pow(double a,double b)这个方法的参数类型是double
double运算有精度损失
所以自己手动*或者用BigInteger.pow代替math.pow都可以。
1806

被折叠的 条评论
为什么被折叠?
