|
|
вернуться в форум21 Послано Mike 28 мар 2007 16:20 What can be wrong at 21 test?Using c++,double types and rounding with int(double k). Re: 21 round using (int)(x + 0.5) where x is double Re: 21 What is wrong in the test #21.Anyone help me. Re: 21 Do you know that real numbers cannnot be compared sush way: r1=r2. Insead it is necessaryto write: abs(r1-r2)<0.000001; |
|
|