Change Positive Number to Negative and Vice Versa

Change Positive Number to Negative and Vice Versa

Hi,
I need to change positive number to negative, and positive number to negative in the same column.
Any suggestion?
Amount
923.54
-455.60
835.65
to
Amount
-923.54
455.60
-835.65
Regards
Benjamin Marcus

Re: Change Positive Number to Negative and Vice Versa

you can use the function "Mathematical.NEG()" in tmap
Seven Stars

Re: Change Positive Number to Negative and Vice Versa

Just have expression -<column name> e.g. -row1.myNum.
For BigDecimals, use row1.myNum.negate().