Math.pow的天坑

先上圖 math.pow(double a,double b)這個方法的參數類型是double double運算有精度損失 所以自己手動*或者用BigInteger.pow代替math.pow都可以。
相關文章
相關標籤/搜索