[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: simple question about NaN and FP exceptions
- From: Francesco Abbate <francesco.bbt@...>
- Date: Sun, 20 Feb 2011 18:53:53 +0100
Hi all,
I have a very simple question. The default behaviour of Lua when a FP
error is encountered is to not raise any error and set the result to
NaN or Inf.
I found this behaviour quite unconvenient for numerical procedures
when it is better to raise a (Lua) error as soon as the problem
happens.
It is possible to easily modify Lua and/or LuaJIT2 for this purpose ?
--
Francesco