lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ian Latham wrote:

Hi, I was wondering if someone could enlighten me as to why the
following script does not produce the output I would expect:

x=0
upper_bound = 1
while x<upper_bound do
x=x+.01
print(x)
end

snip/

Oops, upper_bound should have been set to .5 in that sample script, but
you get the idea.

-Ian Latham