Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の次の表現可能な値-0.0が である場合、が返されない+0.0のはなぜですか?nextafter(-0.0, INFINITY)+0.0
-0.0
+0.0
nextafter(-0.0, INFINITY)
+0 は -0 と比較すると -0 に等しいため、-0 の「後」ではないためです。