POV-Ray : Newsgroups : povray.general : nan (not a number) : Re: nan (not a number) Server Time
28 Jun 2024 02:34:19 EDT (-0400)
  Re: nan (not a number)  
From: Nieminen Mika
Date: 15 Apr 1999 14:16:56
Message: <37161f08.0@news.povray.org>
In povray.general "Daniele Varrazzo" <piro at officine dot it> wrote:
: vnormalize (<0, 0, 0>) isn't matematically defined... but POV-Ray 3.1a
: (windows) returns a "perfectly valid" <nan, nan, nan> vector... it's a sin
: that there isn't any IsNan() function or something like that to recognize
: it.

  I think that's because it's system dependant. Recognizing NaN-values
would make it non-portable.
  In many systems this kind of mathematical operation will just crash
the program.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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