Skiba <abx### [at] babilon org> 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] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|