On 10/04/2012 15.39, Patrick Rapin wrote:
function isnan(x) return x~=x end function isinf(x) return (x+1)==x end Well, there seems to be a problem with the second one : return 1e16 1e+016 return isinf(1e16) true
function isnan(x) return x~=x end function isinf(x) return (x+1)==x end
Well, there seems to be a problem with the second one :
return 1e16
1e+016
return isinf(1e16)
true
Maybe (x*10) instead of (x+1)? -- Enrico