首页 新闻 会员 周边
1
回答数

已解决问题 10 double 和float精度问题

牛顿迭代算题的时候出现这样一幕 public int mySqrt(int x) { int n = x; double a = x; while(a * a-n>0.1){ a -= (a * a-