Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Removing negative - sign

Former Member
0 Kudos

Hi Friends,

I used the subtract command . Is there anyway i can get a positive result all the time . I am getting the result 1- .

I want to remove the - sign in front of the digit .

Thank you ,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use ABS function.

Thanks,

Vamshi Tallada

6 REPLIES 6

Former Member
0 Kudos

Use ABS function.

Thanks,

Vamshi Tallada

0 Kudos

Hi vamshi ,

Does absolute remove the - sign or just does the roundoff ???

Please let me know .

Thanks

0 Kudos

or simply mutiply by -1.

Regards,

Suresh Datti

0 Kudos

how do you do that ?? Can you share an example .

I have used

SUBTRACT 2 FROM FLD1 .

Thanks

0 Kudos

FLD1 = FLD1 * -1.

Suresh

0 Kudos

ABS function will make any number postivie, it wont round off.If you multiply by -1, sometimes u might get negative number multiplied number is positive.

Thanks,

Vamshi