---
title: math.NaN() function
description: math.NaN() returns a IEEE 754 “not-a-number” value.
url: https://docs.influxdata.com/flux/v0/stdlib/math/nan/
estimated_tokens: 315
product: Flux
version: v0
---

# math.NaN() function

-   Flux 0.22.0+
-   View InfluxDB support

`math.NaN()` returns a IEEE 754 “not-a-number” value.

##### Function type signature

```js
() => float
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Examples

### Return a NaN value

```js
import "math"

math.NaN()
```
