lua-users home
lua-l archive

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


Any suggestions?

In the past, the header contained a sample lua_Number that was meant for
testing this. However, it turned out that different compilers created
different bit patterns (usually the difference was in the last bit).
So, it was not robust.

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

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.

Tim Maxwell