@@ -1142,10 +1142,9 @@ impl<T: Copy> Copy for (T,) {
1142
1142
/// surprising results upon inspecting the bit patterns,
1143
1143
/// as the same calculations might produce NaNs with different bit patterns.
1144
1144
///
1145
- /// When the number resulting from a primitive operation (addition,
1146
- /// subtraction, multiplication, or division) on this type is not exactly
1147
- /// representable as `f32`, it is rounded according to the roundTiesToEven
1148
- /// direction defined in IEEE 754-2008. That means:
1145
+ /// When a primitive operation (addition, subtraction, multiplication, or
1146
+ /// division) is performed on this type, the result is rounded according to the
1147
+ /// roundTiesToEven direction defined in IEEE 754-2008. That means:
1149
1148
///
1150
1149
/// - The result is the representable value closest to the true value, if there
1151
1150
/// is a unique closest representable value.
@@ -1154,6 +1153,9 @@ impl<T: Copy> Copy for (T,) {
1154
1153
/// - If the true value's magnitude is ≥ `f32::MAX` + 2<sup>(`f32::MAX_EXP` −
1155
1154
/// `f32::MANTISSA_DIGITS` − 1)</sup>, the result is ∞ or −∞ (preserving the
1156
1155
/// true value's sign).
1156
+ /// - If the result of a sum exactly equals zero, the outcome is +0.0 unless
1157
+ /// both arguments were negative, then it is -0.0. Subtraction `a - b` is
1158
+ /// regarded as a sum `a + (-b)`.
1157
1159
///
1158
1160
/// For more information on floating point numbers, see [Wikipedia][wikipedia].
1159
1161
///
0 commit comments