|
|
||
|
On 1-Mar-05, at 8:41 AM, Roberto Ierusalimschy wrote:
What is wrong with the following code?
math.nan = 0/0 math.inf = 1/0
math.isnan = function (x) return x ~= x end
math.isnotnan = ... -- beware: this one may be patented already ;)
Put that in a file `nan.lua' and just say `require "nan"´.