Revision Difference
nan#547741
<cat>Dev.Lua</cat>⤶
The value **nan**, which stands for **Not a Number**, represents the result of an illegal math operation. For example, infinity divided by infinity will produce **nan**.
⤶
⤶
⤶
# NaN⤶
⤶
If `nil` was supposed to be a number, it would be `NaN`.
⤶
This value is generated from henious math operations such as the following:⤶
⤶
```lua⤶
local NaN = 0 / 0⤶
```⤶
⤶
This is not to be confused with infinity (which for some reason is confused with).⤶
⤶
```lua⤶
local Infinity = math.huge or 1 / 0⤶
```