Re: Some small requests for the next release
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Some small requests for the next release
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2005年3月01日 10:41:32 -0300
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"´.
-- Roberto