POV-Ray : Newsgroups : povray.general : abs()? : Re: abs()? Server Time
1 Aug 2024 10:13:22 EDT (-0400)
  Re: abs()?  
From: Daniel Hulme
Date: 15 Nov 2005 17:46:46
Message: <20051115224652.306da813@surreal>
> "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?
You understanding of unary plus is incorrect.
+A = A. (A < 0) implies (-A > 0).

-- 
There once was a teacher of great renown,      Gather your goods        
Whose words were like the tablets of stone,    and follow me            
Because it's easier to learn than unlearn,     Or you will surely die   
Because we've passed the point of no return.   Paul Simon, 'The Teacher'


Post a reply to this message

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