[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why is there no 'math.round'?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 23 Apr 2008 11:55:16 -0300
> Obviously, Lua implements some math functions in spite of being
> minimalist. The question is where to draw the line (which actually is
> all what rounding functions are about)...
In the particular case of the math library, the "line" is mostly math.c
(from C89). So, ceil and floor are in math.c, round is not.