Welcome to iraf.net Friday, April 19 2024 @ 09:31 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
  64bit cl
   
duvall
 07/07/2010 08:48PM (Read 1536 times)  
+++--
Chatty

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

 
Profile Email
 Quote
fitz
 07/07/2010 08:48PM  
AAAAA
Admin

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

 
Profile Email
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login