We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3641f59 commit 8eb3455Copy full SHA for 8eb3455
src/lib.rs
@@ -1189,6 +1189,9 @@ impl NotNan<f64> {
1189
/// Converts this [`NotNan`]`<`[`f64`]`>` to a [`NotNan`]`<`[`f32`]`>` while giving up on
1190
/// precision, [using `roundTiesToEven` as rounding mode, yielding `Infinity` on
1191
/// overflow](https://doc.rust-lang.org/reference/expressions/operator-expr.html#semantics).
1192
+ ///
1193
+ /// Note: For the reverse conversion (from `NotNan<f32>` to `NotNan<f64>`), you can use
1194
+ /// `.into()`.
1195
pub fn as_f32(self) -> NotNan<f32> {
1196
// This is not destroying invariants, as it is a pure rounding operation. The only two special
1197
// cases are where f32 would be overflowing, then the operation yields Infinity, or where
0 commit comments