[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Weird embedded literal number/compiler issue
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 10 Aug 2008 21:26:11 -0300
> Unfortunately, a sample lua_Number was the only solution that I could
> think of. Would the least-significant-bit issue go away if the
> correct value was chosen for the constant? I believe that there are
> some values that IEEE 754 can represent exactly...
Sure. But the problem is that compilers may be sloppy when they convert
from decimal to binary... We got bitten by that once.
> > I started writing one such tool but never finished because it was too
> > complicated to cater for all needs.
> What needs did you see? It seems to me that number format conversion
> is the main issue.
See this thead: http://lua-users.org/lists/lua-l/2005-06/msg00019.html