|
![](/i/fill.gif) |
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?
>
The definition of absolute value is as follows:
|x| is the distance between a given number (x) and 0 on a number line.
Thus:
abs(x) returns the MAGNITUDE of x, such that |x|=|-x|. This value is
always positive.
ADB
Post a reply to this message
|
![](/i/fill.gif) |