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

subtracting with currencies

Status
Not open for further replies.

kamloops

Programmer
May 7, 2003
34
CA
Hi There,

If I have an equation like $500 - $1000, how do I make it so the answer is 0 and not -$500

Thanks for any help.
 
OOPS sorry what I meant is how do I get it so it is $500 and not -$500

Thanks
 
$1000 - $500 does = -$500. But if you want the absolute value of the difference you might use:
answer = Abs({equation]).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top