Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Cannot format NaN #74

Open
evveric opened this issue May 1, 2019 · 1 comment
Open

Cannot format NaN #74

evveric opened this issue May 1, 2019 · 1 comment

Comments

@evveric
Copy link

evveric commented May 1, 2019

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

@ScottPJones
Copy link
Collaborator

Note: this is already fixed in Format.jl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants