In .Net the type Double
has a static method IsNan()
which accepts one parameter, a double
and returns a bool
.
Surely, this means that the method will always return true as it can only accept a double? Can someone explain the point of this method and when it might return false? Purely curious and wanting to be educated.
Edit: My apologies for a very poorly asked question. You are all right, I should have read the documentation. And, yes I did mean "the method will always return false".