File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,10 @@ impl f32 {
258
258
/// most cases. However, due to a floating point round-off error it can
259
259
/// result in `r == rhs.abs()`, violating the mathematical definition, if
260
260
/// `self` is much smaller than `rhs.abs()` in magnitude and `self < 0.0`.
261
+ /// This result is not an element of the function's codomain, but it is the
262
+ /// closest floating point number in the real numbers and thus fulfills the
263
+ /// property `self == self.div_euc(rhs) * rhs + self.mod_euc(rhs)`
264
+ /// approximatively.
261
265
///
262
266
/// # Examples
263
267
///
Original file line number Diff line number Diff line change @@ -234,6 +234,10 @@ impl f64 {
234
234
/// most cases. However, due to a floating point round-off error it can
235
235
/// result in `r == rhs.abs()`, violating the mathematical definition, if
236
236
/// `self` is much smaller than `rhs.abs()` in magnitude and `self < 0.0`.
237
+ /// This result is not an element of the function's codomain, but it is the
238
+ /// closest floating point number in the real numbers and thus fulfills the
239
+ /// property `self == self.div_euc(rhs) * rhs + self.mod_euc(rhs)`
240
+ /// approximatively.
237
241
///
238
242
/// # Examples
239
243
///
You can’t perform that action at this time.
0 commit comments