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

Re: Numeric Vars



two questions:

(1) is anything changing between your SHOW statement and your IF statement?

(2) I noticed you only show the first six decimal places of each number.  What 
about to the right of the sixth decimal
place?  What data types are you using for these numbers -- float?

- Mark



-----Original Message-----
From: Bill Beckner [mailto:Bbeckner@ICC.CC.IL.US]
Sent: Thursday, July 12, 2001 12:13 PM
To: SQR-USERS@list.iex.net
Subject: Numeric Vars


Here's a puzzle for all you SQR experts....

I've got these two numeric variables, assigned the same amount, and I
display their values like this:

    SHOW '#New_Posted_amt ' #New_Posted_amt
    SHOW '#Ttl_Proj_Amt2  ' #Ttl_Proj_Amt2

And the following shows in the sqr.log:

    #New_Posted_amt 12696.840000
    #Ttl_Proj_Amt2  12696.840000

When the following comparison is performed:

    if #New_Posted_amt > #Ttl_Proj_Amt2
        do Print-Error-Message
    end-if

I always get an error message!!!  Any ideas?  We're using SQR 4.3.4

Thanks!!!

Why does SQR

--
William Beckner -- Stunt Programmer (Just call me "Bill")
Illinois Central College, Rm L141 -- East Peoria, IL  61635-0001
PH: (309) 694-8419 -- FAX: (309) 694-8995
"An unfinished thought is like a day without..."

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.