Is there a way, without going through all the "If x < 0 then x=0-x", to make sure your calculation always returns a positive number?
For example, I am calculating percentages, some of which are <<negative number>> / divisor, other of which are not. Is there an easy way to say, "just give me a positive percentage" on the output?
The reason it's an issue is that i have about 60 variables, so it takes a lot of time to test every one.
Thanks in advance.
Mike Kemp
michael.kemp@gs.com
For example, I am calculating percentages, some of which are <<negative number>> / divisor, other of which are not. Is there an easy way to say, "just give me a positive percentage" on the output?
The reason it's an issue is that i have about 60 variables, so it takes a lot of time to test every one.
Thanks in advance.
Mike Kemp
michael.kemp@gs.com