Garry's Mod Wiki

Revision Difference

nan#553938

<cat>Dev.Lua</cat> # 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: If <page>nil</page> was supposed to be a number, it would be <page>NaN</page>. This value is generated from heinous 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 ```