POV-Ray : Newsgroups : povray.beta-test : No error message for array element nr. -1 : Re: No error message for array element nr. -1 Server Time
29 Jul 2024 12:28:27 EDT (-0400)
  Re: No error message for array element nr. -1  
From: Thorsten Froehlich
Date: 9 May 2002 04:32:03
Message: <3cda3403@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> I can confirm however I wonder if it could be ... floating point accuracy.
> What rounding is performed when float is converted to integer ? Truncation
> towards zero ? Could it be that -1 is internally something like -0.99999999999
> and after truncation it is valid value 0 ?

The rounding method used requires a small bias to be added.  That is added
always.  It can of coure be fixed.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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