I'm wondering what is the difference for comparing two double between this two manner :
double a1 = ...;
double a2 = ....;
Is there a prefering way to do that ?
thanks
This article answers your question quite thoroughly, I think. You might want to skip ahead to the section "Epsilon comparisons".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With