[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why is there no 'math.round'?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 23 Apr 2008 10:03:17 -0300
> Sure. But the optimal round-to-even strategy is non-trivial to
> implement in a system-independent manner and/or in a high level
> language. But it is part of IEEE standards. So it is rather cheap to
Lua is based on C89, which does not have IEEE-compatible math functions.
When (and if) Lua moves to C99, the math library will include those.
On the other hand, I did write an extension of the math library that
containe those functions. I'll dig it up if there's any interest.
--lhf