(Don’t ask me why I’m looking into this. )
I am running into some behavior that seems unintuitive:
Double(Float.nan) // returns `Double.nan`
Float(Double.nan) // returns `Float.nan`
Double(exactly: Float.nan) // returns `nil`
Float(exactly: Double.nan) // returns `nil`
Is this a bug, or something I’m misunderstanding about floating point?