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

Re: Numeric Vars



This is a know problem with SQR... it maybe the 16th number after the
comma which is causing the problem. You probably calculated the values
for the variables? You have to use an edit mask for the calculation...
must be some more threads about this in the history of this
mailinglist.

Arjan

--- Bill Beckner <Bbeckner@ICC.CC.IL.US> wrote:
> 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..."


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/