mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
core/num: Implement feature `float_nan_to` Accepted ACP: https://github.com/rust-lang/libs-team/issues/787 Tracking issue: https://github.com/rust-lang/rust/issues/161248 Add function `nan_to` on `f16`, `f32`, `f64`, `f128` which replaces NaN values with a user-specified value or returns the original value if it is not a NaN. --- No LLM use.