[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tostring vs. nan, inf
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 10 Apr 2012 15:56:06 +0200
To test for all 3 special numbers (Inf, -Inf and NaN) in the same
time, one could do so :
function isspecial(n)
n = n * 0
return n ~= n
end
- References:
- tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Martin Guy
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Patrick Rapin
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo