[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
- Subject: Re: absolute value : not working whats up with that
- From: Elvis Pressly <elvisdman@HOTMAIL.COM>
- Date: Fri, 6 Apr 2001 14:25:14 -0000
scott,
You are showing two different kind of apples. One is numeric and
the other is character type. Try using the mi mask in $Credits
like.......... SHOW 'Credits ' $Credits 999999999.99mi
If this wont work, then convert $credits into a numeric var.
>From: Scott Eubank <SEUBANK@ADVANCEAUTOPARTS.COM>
>Reply-To: sqr-users@list.iex.net
>To: SQR-USERS@list.iex.net
>Subject: absolute value : not working whats up with that
>Date: Fri, 6 Apr 2001 09:55:11 -0400
>
>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?
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com