We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af78bae commit 399b5ebCopy full SHA for 399b5eb
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
+ // Both inputs are NaN. Use `+` to perform NaN propagation.
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