111,092
社区成员




1. public static decimal Sqrt(decimal d){
2. decimal x = d / 3;
3. decimal lastX = 0m;
4. for(int i = 0; i < 50; i++){
5. x = (d / (x * 2)) + (x / 2);
6. if(x == lastX) break;
7. lastX = x;
8. }
9. return x;
10. }