0
C++ , Why false
Can anyone explain me this program logic ?? Double a=0.1; Double b=0.2; Double c =0.3; If(a+b==c) Cout<<"true"<<endl; Else Cout<<"false"<<endl;
3 Respuestas
+ 4
floating point math precision...
https://betterprogramming.pub/why-is-0-1-0-2-not-equal-to-0-3-in-most-programming-languages-99432310d476?gi=cd20e94c19e8