类型 数字 库 math.* 修订版 2024.3703 版 关键字 math, inf 另请参见 math.huge
返回一个大于或等于任何其他数字的值。
math.inf
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