lua-users home
lua-l archive

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

>As for the division behaviour, that's completely standard (according to IEEE
>rules), but easily changed, assuming you have fenv.h on your system: you
>just need to change the floating point exception state of the program
>hosting Lua, using fesetexcept flag.

fenv.h seems to be standard in C99, but not in C89 or POSIX.
(However, it is present in recent Linux distributions.)
So, there's nothing we can do to the Lua code, if we want to keep it portable.