POV-Ray : Newsgroups : povray.general : What is -1.#IO : Re: What is -1.#IO Server Time
21 Dec 2025 04:25:21 EST (-0500)
  Re: What is -1.#IO  
From: Bald Eagle
Date: 17 Dec 2025 16:25:00
Message: <web.69431f7adf4c0ffa1d71f3c25979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Leroy" <whe### [at] gmailcom> wrote:

> > #if(V2=<-1.#IO,-1.#IO,-1.#IO>) #debug"hit"#end
> >
> > Caused POV to Crash!
>
> That's weird - might be something that the parser doesn't handle well, but
> crashing isn't acceptable.  Try -Inf

Looks like it's likely a parser / tokenizer issue.

Also, when comparing vectors, use
VEq(V1, V2). Tests for equal vectors, returns true if all three components of
V1equal the respective components of V2.

(IIRC, that's in math.inc)




# characters. [wiki.povray.org], [cmp.felk.cvut.cz], [POV-Ray 3....n Page 93.]
In POV‑Ray, # is reserved to start language directives (e.g., #if,
#declare, #include). When the scanner encounters -1.#IO, it reads -1. as a


instead of producing a normal parse error. [povray.org], [POV-Ray: D...n
Language]



The condition #if (V2 = <...>) is being treated as a relational equality test
(=) inside the #if (not an assignment). #if conditions must evaluate to a


in the numeric token, but even with valid numbers you would need to compare
vectors via their components or length. [museum.state.il.us], [wiki.povray.org]


Post a reply to this message

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