POV-Ray : Newsgroups : povray.general : abs()? : Re: abs()? Server Time
1 Aug 2024 10:19:19 EDT (-0400)
  Re: abs()?  
From: Larry Hudson
Date: 15 Nov 2005 20:38:46
Message: <437a8da6$1@news.povray.org>
Tim Cook wrote:
>  From the documentation:
> 
> "abs(A) Absolute value of A. If A is negative, returns -A otherwise 
> returns A."
> 
> er...that isn't what absolute value is.  absolute value of A is +A, if A 
> is negative, the absolute value is +A, not -A.  is the behaviour of POV 
> or the documentation incorrect?
> 

Sounds right to me...

If A is negative, -A is negating a negative number, making it positive. 
  Right?   ;-)

      -=- Larry -=-


Post a reply to this message

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