Formatting.jl icon indicating copy to clipboard operation
Formatting.jl copied to clipboard

Cannot format NaN

Open evveric opened this issue 6 years ago • 1 comments

I have an array of Float64 that may contain NaN or Inf Below returns error:

format(NaN, width=4)

Can it simply return "NaN" or "Inf" if the input value is not valid? Regardless of the keyword argument?

Thank you

evveric avatar May 01 '19 07:05 evveric

Note: this is already fixed in Format.jl

ScottPJones avatar Feb 14 '24 01:02 ScottPJones