C#
Wednesday, April 25, 2012
NaN
Sometimes, when using double variables, in some expressions you may get "NaN" values.
In order to determine if the value is NaN, you can use the following expression:
if(
double
.NaN.CompareTo(
variable
)==0)
{
// Do something;
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment