[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: How to trunc a real?
- From: "Vincent Penquerc'h" <vincent@...>
- Date: Fri, 27 Oct 2000 16:38:06 -0000
> 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