Jump to content

How to change a negative number to positive


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 years later...

If you have both negative and positive amounts, the easiest thing to do is use the ABS() function.  In this example, you would double click on the field that contains the "Amount Taken" value to open the Expression Editor.  From there you want to select Numeric/Mathematical and double click on the ABS function where you will see ABS() in the Expression Editor.  Put your variable inside the () and it will always return a positive value.

EXAMPLE:

ABS($V{Amount Taken})

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...