POV-Ray : Newsgroups : povray.general : QNAN - Error... : Re: QNAN - Error... Server Time
7 Sep 2024 18:09:49 EDT (-0400)
  Re: QNAN - Error...  
From: "Jérôme M. Berger"
Date: 28 Mar 2006 13:44:54
Message: <44298426$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Nikias wrote:
> My first thought of checking if the QNAN is smaller as well as larger as a
> given value doesn't work, too bad. I had hoped to have some means of simple
> arithmetic to sort out QNANs instead of a pure check for QNAN and an
> else-clause if there is...
> 
	You might want to try if the number is equal (==) but not lower or
equal (<=) than 1.0 (with gcc 4.0.1 in fast math mode the first test
returns true, and the second false). Of course this will be
platform-specific and possibly even pov-version-specific...

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEKYQld0kWM4JG3k8RAs4YAKCMOKQxR0SRz2MLULUczKQFAnQMxgCeOI+O
S6it6oRHj/mMUi/lzH6g3tA=
=8EbK
-----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.