> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/functions/is-nan.md).

# is\_nan()

is\_nan() checks whether a value is NaN (not a number) and returns true or false, so you can guard formulas against missing data.

Learn how to use the Is NaN function in Origami Tech to check for missing or invalid numeric values, ensuring data accuracy in trading scripts.

## `is_nan`(*decimal*) -> *bool*

Returns bool

True if input Nan and False if input not Nan

<details>

<summary>Example:</summary>

`is_nan(Nan)` → `true`

`is_nan(1.1)` → `false`

</details>
