lua-users home
lua-l archive

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


* Roberto Ierusalimschy:

> Unfortunately, hex floating-point literals are handled by 'strtod',
> and 'strtod' supports them only in C99, while Lua assumes a C89
> compiler. Specifically, Microsoft's 'strtod' does not support them :(
>
> So, hex floating-point literals is a kind of "bonus" feature that
> you get when using a C99 compiler.

Do the relevant MSVC versions support ldexp?  Is implementing a parser
based on this function really that difficult?  All those little
rounding oddities don't apply with hexadecimal literals, after all.