[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






  Your abs function refers to sum-credit (no ending s), your display
statement refers to sum-credits (with s).  Do you have the variable
sum-credits set higher up?

Rachael

>  -----Original Message-----
> From:   Scott Eubank <SEUBANK@ADVANCEAUTOPARTS.COM>@INTERNET
> Sent:   Friday, April 06, 2001 6: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?

(See attached file: C.DTF)

C.DTF