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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute value of a number

Status
Not open for further replies.

PJOL

IS-IT--Management
Oct 11, 2005
28
0
0
IE
I need to work with the absolute vale of a number in our formula.

numbervar sub7:=({UD_SP_BOX_COUNT.Customer} - {@sub6})

Whether {@sub6} has a negative or positive value, I want the absolute value to be used in the formula.

Any help appreciated.
 
Use:

numbervar sub7:=({UD_SP_BOX_COUNT.Customer} - abs({@sub6}))

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top