Re: [q-lang-users] Q 7.2 RC1 Issue 3: IEEE floats
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-06-20 04:57:56
|
John Cowan wrote: > int isinf(double f) { > return (f + f == f); > } Hmm, I guess that should actually be: return (f - f != f && f + f == f); We shouldn't forget that 0.0 is idempotent for (+), too. ;-) -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |