POV-Ray : Newsgroups : povray.newusers : rounding : Re: rounding Server Time
28 Jul 2024 22:24:04 EDT (-0400)
  Re: rounding  
From: Warp
Date: 29 Jun 2008 18:03:02
Message: <48680696@news.povray.org>
andrel <a_l### [at] hotmailcom> wrote:
> People have different expectation on what e.g. 
> floor() should do for negative numbers.

  AFAIK the floor() function is universally defined to round downwards,
as the name implies. In other words, the return value is always smaller
or equal to the parameter.

> I agree that round() could be added as a function in POV4.

  Why? floor(value+.5) does the same thing.

-- 
                                                          - Warp


Post a reply to this message

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