[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: absolute value : not working whats up with that



I might be missing something but...

Below you are letting #Sum-Credit(Singular) = abs(#Sum-Credit)
But you are Showing #Sum-Credits(Plural)
Check your code and make sure that you are using the same variable name through
out your code.

Thanks!
Shawn Combs, ULIT Soft, Inc.
Bus: 321-674-4683,  Cell: 321-960-1008
Email: scombs@ulitsoft.com <mailto:scombs@ulitsoft.com>



-----Original Message-----
From: Scott Eubank [mailto:SEUBANK@advanceautoparts.com]
Sent: Friday, April 06, 2001 9:55 AM
To: SQR-USERS@list.iex.net
Subject: absolute value : not working whats up with that


code:
***************************************************************
  let #Sum-Debits = abs(#Sum-Debits)
  let #Sum-Credit = abs(#Sum-Credit)



   show 'Sum Debits :' #Sum-Debits  edit 9999999999.99
   show 'Sum Crdits :' #Sum-Credits edit 9999999999.99

   show ' H Debits  :' $Debits
   show ' H Credits :'$Credits
********************************************************************
end code

yeilds results:
----------------------------------------------------------------------
Sum Debits : 379434039.78
Sum Crdits :-379434039.78
H Debits  :       379434039.78
H Credits :       379434039.78
---------------------------------------------------------------------

So whats up with the abs function if it does not work correctly.  What am I
doing wrong here?