Click to See Complete Forum and Search --> : convert positive and negative numbers


DeannaUTI
June 10th, 2004, 11:10 AM
I have a sales report where sales dollars are negative and credits and returns show as positive numbers. I would like to change the negative numbers to positive numbers and the positive numbers to negative numbers.

Thank you for any help.

K.Babu
June 11th, 2004, 07:07 AM
Originally posted by DeannaUTI
I have a sales report where sales dollars are negative and credits and returns show as positive numbers. I would like to change the negative numbers to positive numbers and the positive numbers to negative numbers.

Thank you for any help.


Hi,

1. Convert negative value to positive

abs(myvar)

2. Convert positive value to negative

myvar - (myvar * 2)


yours friendly,
K.Babu