Show Negative number as Positive

F

Frankbelly

I know this one is really easy, but I can't seem to find it.

I have a negative number assigned to a variable and I need to take that
number and assign it to a second variable except I need the postive value of
that number to be assigned to the second variable.

variable1 = -10

variable2 = Positive(variable1)

I'm sure there is some sort of format expression similar to the above that I
can use. Any help is greatly appreciated.
 
K

Karl E. Peterson

Frankbelly said:
I know this one is really easy, but I can't seem to find it.

I have a negative number assigned to a variable and I need to take
that number and assign it to a second variable except I need the
postive value of that number to be assigned to the second variable.

variable1 = -10

variable2 = Positive(variable1)

I'm sure there is some sort of format expression similar to the above
that I can use. Any help is greatly appreciated.

variable2 = Abs(variable1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top