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
012-floating-point.mdのNaN(Not a Number)の節で、
// false bool d = NaN != NaN ;
とあります(コードから抜粋)。しかし、このサイトの例でgcc 11.1(C++20)を選び、
std::cout << "NaN != NaN? " << std::boolalpha << ( std::numeric_limits::quiet_NaN() != std::numeric_limits::quiet_NaN() ) << '\n';
を追記し、実行するとtrueになりました。 NaN != NaN はtrueではないでしょうか?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
012-floating-point.mdのNaN(Not a Number)の節で、
とあります(コードから抜粋)。しかし、このサイトの例でgcc 11.1(C++20)を選び、
を追記し、実行するとtrueになりました。
NaN != NaN はtrueではないでしょうか?
The text was updated successfully, but these errors were encountered: