|
You misunderstood what I meant, I know that due to accuracy issues,
if ((x >=-EPSINON)&&(x <= EPSINON))
double ff=1.0;
if(ff==1)//Precision, but due to accuracy problems, this should not be true here! , But the procedure is considered to be established
{
cout<<"ok"<<endl;
}
else
{
cout<<" cancel"<<endl;
}
//Why is the output ok instead of cancel?
Thank you! |
|