lua-users home
lua-l archive

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


Not in LuaJIT if I remember correctly.

On Apr 10, 2012 6:19 AM, "David Manura" <dm.lua@math2.org> wrote:
On Tue, Apr 10, 2012 at 12:54 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
>[ ...] Lua can not read back:
>> return tostring(1/0)
>inf

Unfortunately, not only can it not be read back, but what that prints
is also compiler dependent [1].

[1] http://wiki.apache.org/stdcxx/FloatingPoint