We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5f215a + 028c78c commit 1b86218Copy full SHA for 1b86218
library/core/src/num/f32.rs
@@ -957,6 +957,7 @@ impl f32 {
957
} else if self == other {
958
if self.is_sign_negative() && other.is_sign_positive() { self } else { other }
959
} else {
960
+ // At least one input is NaN. Use `+` to perform NaN propagation and quieting.
961
self + other
962
}
963
library/core/src/num/f64.rs
@@ -968,6 +968,7 @@ impl f64 {
968
969
970
971
972
973
974
0 commit comments