The current definition of abs() [absolute function] states
x: if x is greater than or equal to 0.
-x if x is less than 0.
Shouldn't it be
x: if x is greater than or equal to 0.
x: if x is less than 0.
?
Also, why is fabs() not in the reference (Float absolute value) [i may not have the latest version of reference, but I did search online and it still shows "x: and -x:". However, I did find fabs() in the online forum]
No, because if x<0, say x=-3, then |x| is 3, which is -(-3), ie -x.
THANKS! I see my error, and I completely understand. However now I don't know what to say now because "x" represents a number, and although this is NOT
an equation, the following statement is NOT true if I replace x with a negative 3:
abs(-3)
-3: if -3 is greater than 0
-3: if -3 is less than 0
I know this is not an argument, and the posting is correct, but it sure did make me try to figure out why I thought what I did. Thanks for your kind reply.
NVM, I did it again! -(-3). I'm tired. Have a great day. LOL