lua-users home
lua-l archive

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

> 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: