Garry's Mod Wiki

math.huge

Not a function

This is NOT a function, it's a variable that effectively represents infinity, in the sense that in any numerical comparison every number will be less than this.

For example, if x is a number, x > math.huge will NEVER be true except in the case of overflow (see below).

Lua will consider any number greater than or equal to 2^1024 (the exponent limit of a double) as inf and hence equal to this.

Page Links


Special Pages


Wikis

?

Render Time: 19ms

Session 0
DB GetPage 4
Generate Html 0
SaveChanges 8
Render Body 0
Render Sidebar 6