--- Sammy <[EMAIL PROTECTED]> wrote:
> I know I've seen it here before, but I cannot find the posting.
>
> How do you take the absolute value of a number, so that even if its
> negative it spits out a positive of that number?
Try man abs.
Or if you want to make your own it's fairly simple.
int abs(int value)
{
if(value < 0)
return value * -1;
else
return value;
}
~Kender
=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$
P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O
M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com