lua-users home
lua-l archive

Re: Why is there no 'math.round'?

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


> 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.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /