POV-Ray : Newsgroups : povray.newusers : rounding : Re: rounding Server Time
28 Jul 2024 22:31:10 EDT (-0400)
  Re: rounding  
From: andrel
Date: 28 Jun 2008 15:17:05
Message: <48668E65.6080306@hotmail.com>
Warp wrote:
> andrel <a_l### [at] hotmailcom> wrote:
>> depends on convention. There as thus 4 ways to round halves: 
>> up,down,towards zero and away from zero.
> 
>   Actually there's a fifth convention which is also widely used: Round
> to the closest even number. I believe the idea behind this one is that
> tries to even out systematic bias in lengthy calculations.
> 
Not to mention the university teacher that recommended alternate up and 
down rounding for even less bias ;) . I have seen libraries of functions 
for the four I mentioned but not for this round to even or the 
alternating one or the random one you mentioned earlier.


Post a reply to this message

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