Re: [q-lang-users] [Chicken-users] Re: IEEE float arithmetic
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-06-20 23:31:25
|
Abdulaziz Ghuloum scripsit: > The test [for infinity] is obviously bogus since f==f+1.0 for large values of f. > (try 1e16) Oops, quite right. The expression "f != 0.0 && f == f + f" will work, I think. 0.0 and NaN are rejected by the left side of "&&", and all other finite values by the right side. -- Andrew Watt on Microsoft: John Cowan Never in the field of human computing co...@cc... has so much been paid by so many http://www.ccil.org/~cowan to so few! (pace Winston Churchill) |