We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In 02.Basic_Concepts_I.pdf, on slide 94 inside the function areFloatNearlyEqual there is the following code for catching Inf or NaN arguments:
02.Basic_Concepts_I.pdf
areFloatNearlyEqual
if (std::isfinite(a) || isfinite(b)) // a = ±∞, b = ±∞ and NaN return false;
But it was causing the function to return false always, even for finite values. I think it should be:
false
if (!(std::isfinite(a) && std::isfinite(b))) // a = ±∞, b = ±∞ and NaN return false;
The text was updated successfully, but these errors were encountered:
thank you, @linomp!! I will fix it in the next release.
Sorry, something went wrong.
No branches or pull requests
In
02.Basic_Concepts_I.pdf
, on slide 94 inside the functionareFloatNearlyEqual
there is the following code for catching Inf or NaN arguments:But it was causing the function to return
false
always, even for finite values. I think it should be:The text was updated successfully, but these errors were encountered: