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

RE: [sqr-users] Error writing to file



I concur.  4,294,967,295 is the biggest (thats 4,294,967,296 numbers
including 0).  And if it was signed it would be somewhere between
(2,147,483,647, -2,147,483,647) including both a positive and negative 0
(which is just silly).  

So if you're saying you have a number larger than that which you are trying
to print, then you need to use an 8byte number.  Dont confusing the number
of DIGITS with the number of BYTES...bytes holds lots of digits. My guess is
that you have some sort of syntax wrong where YOU think that you're helping
it by telling it it's six digits, when in fact you're telling it that it
should be 6 bytes.  If you want it to print 6 digits every time use an edit
mask (like printing the number 123 would be 000123 using 'print #var (+1,1)
edit 099999').  Otherwise just print normally.


-----Original Message-----
I'll go with 4,294,967,295 ...

Lance D. Munger


-----Original Message-----
[mailto:sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org] On
Behalf Of Larry Roux

It has been a long time....without using a calculator: 299,451,648? But
I think it is +/- 149,725,824 for in integer - Less for a float.
 


>>> KnappR@umsystem.edu 1/4/2005 2:55:09 PM >>>
Must = mandatory, no?

Today's programmer quiz:
What is the largest value that can be stored in 4 bytes?



-----Original Message-----
Hi,

       When i try to write a numeric variable of length 6, it gives me
the following error. (SQR 3211) #Numeric variables and literals must
have :length of 1, 2 or 4 bytes.

        Is it mandatory to have a numeric variable of the specified
length (1,2 or 4)?

Thanks,

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users