lua-users home
lua-l archive

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


> 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?

Since you only have one numerical type, I think the only way (besides
calling a registered routine of course) is to convert the number to text
format (via the format routine), and parse it.

-- 
Lyrian