POV-Ray : Newsgroups : povray.general : QNAN - Error... : Re: QNAN - Error... Server Time
1 Aug 2024 10:13:16 EDT (-0400)
  Re: QNAN - Error...  
From: Chris B
Date: 28 Mar 2006 10:41:59
Message: <44295947@news.povray.org>
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote in 
message news:4428663a$1@news.povray.org...
>
> Of course, to actually test any of this, I'd need a fail-proof way to
> generate NaN. I might have to fumble a little with vaxis_rotate and the
> <0,0,0>-axis...
>
> Regards,
> Tim
>

Hi Tim,

For me the following SDL generates a QNAN every time (or rather 3).
I'm on Windows XP with POV-Ray 3.6.
This string comparison detects it too.

Regards,
Chris B.


#local A = vaxis_rotate(0,0,0);
#local B = str(A.x,1,5);
#if (strcmp(B,"1.#QNAN")=0)
  #debug "***     QNAN Detected     ***\n"
#end


Post a reply to this message

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