Closed
Description
cargo run printf "%f %f\n" nan -nan
-NaN -NaN
printf "%f %f\n" nan -nan
nan -nan
- GNU coreutils prints lowercase
nan
(orNAN
with%F
, uutils does that too) - GNU coreutils preserves the
nan
sign
1 is trivial to fix, 2 might be a trickier.
Probably not a huge deal in real use cases, but I'm trying to look into refactoring number formatting so I should be able to catch this one as well.