lua-users home
lua-l archive

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


>  Since Lua is C89, here's a function dbltohex that converts a double to 
> a string just like the "%.13a" C99 specifier would do, and hextodbl to 
> convert the string back to a double.

The code seems to assume IEEE 754, which is fine for current machines,
but is not part of C89 (though it is part of C99).