How to check if a double is null?

前端 未结 6 1168
天涯浪人
天涯浪人 2020-12-01 13:58

I\'m querying a database and some of the results I\'m getting are null. I\'m setting these values to a variable with a datatype of double. Let\'s call the variable \"results

6条回答
  •  误落风尘
    2020-12-01 14:13

    I believe Double.NaN might be able to cover this. That is the only 'null' value double contains.

提交回复
热议问题