[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fastest way to determine number is integer in plain Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 7 Nov 2008 08:09:55 -0200
> Is there a plain Lua way to determine that given positive number is
> integer faster than doing something like a == math.floor(a)?
Try a%1 == 0.