function round(n)
local floorednum = math.floor(n)
if n < (floorednum+0.5) then
return floorednum
end
if n >= (floorednum+0.5) then
return math.ceil(n)
end
end
local thing = 0
while true do
print(2.2^thing)
print(round(2.2^thing))
thing = thing + 1
end
To embed this project on your website, copy the following code and paste it into your website's HTML: