Re: [q-lang-users] [Chicken-users] Re: IEEE float arithmetic
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-06-21 04:30:05
|
Abdulaziz Ghuloum scripsit: > Out of curiosity, why not simply do "f==1.0/0.0 || f==-1.0/0.0" to test > if f is +inf.0/-inf.0? Umm. Too obvious, I guess. I started working these out in Chicken, where dividing by zero throws an exception, so I wanted some other method. But in C, of course, there's no such issue. -- One art / There is John Cowan <co...@cc...> No less / No more http://www.ccil.org/~cowan All things / To do With sparks / Galore -- Douglas Hofstadter |