Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting negative integers to positive?

Status
Not open for further replies.

THEGREEK

Technical User
Aug 17, 2000
51
CA
Is there a quick way to convert all existing negative integers to positive integers (ie. -2 to equal 2 etc etc...)

Any help would be greatly appreciated

Thanks again,

THEGREEK
 
Use the Abs() function. It will return the Absolute Value of any number passed to it. Meaning, it will have no effect on positive numbers but will change negative numbers to positive values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top