lua-users home
lua-l archive

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


Jon Kleiser wrote:
> Probably the most stupid Lua question ever asked: What's the easiest  
> way to cut away the fractional part of a floating point number in Lua? 

ceil() or floor() will do the trick.

Steve