How to check if a double is null?

前端 未结 6 1123
天涯浪人
天涯浪人 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:12

    I would recommend using a Double not a double as your type then you check against null.

提交回复
热议问题