math.inf

Type Number
Library math.*
Revision Release 2022.3683
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