Welcome to iraf.net Friday, April 19 2024 @ 09:31 PM GMT
duvall |
07/07/2010 08:48PM (Read 1536 times)
|
|
|
Status: offline
Registered: 03/08/2006
Posts: 59
|
I'm just getting started with the new version 2.15Alpha. I wanted to do something that was a 64-bit thing, so I said to the cl:x=1.e10
i=x
print (i)
with the result:
-2147483648I guess I was thinking that integers in the cl would be 64bit. Am I wrong?
Thanks.
Tom
|
|
|
|
fitz |
07/07/2010 08:48PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Right, integer CL variables remain 32-bit values since I couldn't think of a compelling reason for needing 64-bit values in scripts. This *could* be done but would require more work on the CL language interpreter (note the CL itself *is* a 64-bit binary, this is a language issue).As a workaround for most cases, use a 'real' or 'double' variable when long integers are needed (all floating point in CL is double-precision). Otherwise, please send me your most compelling (real-world!) use case.-Mike
|
|
|
|
| |
|
Content generated in: 0.09 seconds |
|