# How to deal with NaN values?

**URL:** <https://forum.knime.com/t/how-to-deal-with-nan-values/6969>\
**Category:** KNIME Analytics Platform\
**Created:** [November 12, 2014, 6:08pm UTC](https://forum.knime.com/t/how-to-deal-with-nan-values/6969 "2014-11-12T18:08:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ajason08](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@ajason08](https://forum.knime.com/u/ajason08)\
**Post date:** [September 25, 2020, 6:16am UTC](https://forum.knime.com/t/how-to-deal-with-nan-values/6969/6 "2020-09-25T06:16:15Z")

</div>

> [@thor](#):
>
> Double.isNaN(xxx)

Similar approach, but using `java snippet (simple) Node`  
This will convert the NaN into a missing value, so you can better deal with it.

```
double doublecol =$mycolumn$;
if (Double.isNaN(doublecol)){return null;}
else{return doublecol;}

```

---

_[View the full topic](https://forum.knime.com/t/how-to-deal-with-nan-values/6969)._
