math.inf

Type Number
Library math.*
Revision Current Public Release (2017.3068)
Keywords math, inf
See also math.huge

Overview

Returns a value larger than or equal to any other numerical value.

Syntax

math.inf

Examples

print (1/0)                   ---> inf
print (math.huge)             ---> inf
print (math.huge / 2)         ---> inf
print ( -math.huge)           ---> -inf
print (math.huge/math.huge)   ---> nan
print (math.huge * 0)         ---> nan