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

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?