Chris wrote:
Hi,
How can I convert positive integers to negative integers. Eg 1 to -1.
Not to be a smart aleck, but I find multiplying by -1 to be useful. You
can guarantee a negative result by first taking the absolute value, so
Result = Math.Abs(x) * -1
will always return a negative number.
--
Gregory Gadow