[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Luis Carvalho <lexcarvalho@...>
- Date: Sun, 7 Jul 2013 17:55:30 -0400
> = 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+%.)","")))'