# isnan (Shared)

> Tells whether a value is the special number NaN (not a number).

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Data and utilities
- **URL**: https://wiki.mymp.gg/en/isnan

## Syntax

```lua
bool isnan(any value)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `value` | `any` | The value. |

## Returns

`true` if the value is a NaN number; `false` for anything else.

## Example

```lua
local ratio = kills / deaths
if isnan(ratio) then
    ratio = 0
end
```

## See also

- [tocolor (Shared)](https://wiki.mymp.gg/en/tocolor.md): Packs a colour's components into a single ARGB number. It is the same function as rgb.
