lua-users home
lua-l archive

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


> = isinteger("x")
> 
> What does this return? I don't have 5.3 handy at the moment.

true, which is wrong; sorry for the noise and thanks for the heads-up! Better
version: 

isinteger = function(x)
  return type(x) == "number" and not math.isfloat(x)
end

Cheers,
Luis

-- 
Computers are useless. They can only give you answers.
                -- Pablo Picasso

-- 
Luis Carvalho (Kozure)
lua -e 'print((("lexcarvalho@NO.gmail.SPAM.com"):gsub("(%u+%.)","")))'