Coder's Guild Mailing List

Absolute Values

Posted by Nphyx on 2000-11-22

If the simple way isn't your bag, you could also square your value, then
take the square root of the result.  That will always get a positive number
for you.  But it's up to you to get the root.