On 2014-02-06 12:46:05 +0100, Niels Möller wrote: > Vincent Lefevre <vinc...@vinc17.net> writes: > > You may need: > > ASSERT (d - d == 0); > > That should exclude both infinities and NaN:s, right?
Yes. If you want to differentiate between NaN and infinities: d != d is true only for NaN. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) _______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel