Posted 08 August 2015 - 01:47 AM
messing with java and computercraft is fun. for example, try these things
just how fun it is.
got any cool things to try? leave a reply with what it is.
>lua
welcum to lua
now u do magic with lua
lua>print(tostring(2^15))
yeah, that is normal.
lua>print(tostring(2^127))
that would be a big number. now for the fun part.
lua>print(tostring(2^128))
what does it return?
Infinity0
yeah, that's something fun to do. now for something confusing.
a = 1
for i = 1,127 do
a = a/2
print(a)
sleep(0.1)
end
print(a)
that's a fun one. now try this.
a = 1
while not a==0 do
a = a/2
print(a)
sleep(0.1)
end
print(a)
why does that return 1?just how fun it is.
got any cool things to try? leave a reply with what it is.