POV-Ray : Newsgroups : povray.general : QNAN - Error... : Re: QNAN - Error... Server Time
7 Sep 2024 18:16:03 EDT (-0400)
  Re: QNAN - Error...  
From: Christian Walther
Date: 28 Mar 2006 02:13:38
Message: <4428e222$1@news.povray.org>
Tim Nikias wrote:
> I might have to write myself a script to generate QNANs in order
> to "experiment" what I can do about them... Unless someone already knows a
> fool-proof way of generating one?

Generating NaNs should be quite trivial. I can do it like this:

   #debug str(1/0 - 1/0, 0, 3)

It shows up as "nan", not as "#QNAN" here on Mac OS X, but I guess 
that's an implementation detail of my C library.

(For some reason POV-Ray here considers 0/0 as inf, while I'd expect it 
to be nan - and in my own programs, it is.)

  -Christian


Post a reply to this message

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