[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: largest number possible?
- From: Mayuresh Kathe <mayuresh@...>
- Date: Fri, 13 Jun 2014 08:15:58 -0400
hello,
i wrote the following snippet (my first attempt at lua code);
-- power generator begin
function power(n)
local x = 2
for i = 2, n do
x = x * 2
end
return x
end
print(power(1024))
-- power generator end
i ran it with 'lua52 square.lua' which gave me an output of "inf".
is there any way to find out the largest number lua can handle?
thanks,
~mayuresh