博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IDL out of the for loop
阅读量:2443 次
发布时间:2019-05-10

本文共 849 字,大约阅读时间需要 2 分钟。

IDL is old. Grandfatherly, even. When it was first written, you had a really souped-up computer if you had added an additional 10 MByte hard drive to go with the standard 1 MByte of disk space. So, you can maybe understand why the default integer size in IDL is 16-bits, or two bytes. This is a short integer by any current standards. This causes problems because a 16-bit signed integer can only represent the values -32768 to 32768. Occasionally, you need an integer larger than that, and even throwing in fingers and toes doesn't do the job.

One place where it causes problems is when short integers are used as counters in FOR loops.

FOR j=0,n DO ...

If you want your loop to go beyond 32768 (loop values will become negative it they go beyond their bounds), you will have to make your loop variable a long integer, like this.

FOR j=0L,n DO ....

转载地址:http://cviqb.baihongyu.com/

你可能感兴趣的文章
ccna考试_是否值得参加200-125 CCNA考试?
查看>>
hcf方法_Python GCD –查找GCD或HCF的4种方法
查看>>
语法和语义之间的差异_语法和语义之间的区别
查看>>
python中平方根_如何在Python中找到平方根
查看>>
wi-fi_您应该了解的有关Wi-Fi安全的知识
查看>>
python语音转文字_Python文字转语音示例
查看>>
windows 数据恢复_如何为Windows找到最佳的免费数据恢复解决方案
查看>>
python密码学凯撒密码_凯撒密码在Python
查看>>
编程自由职业_如何开始自己的自由编程业务?
查看>>
2018年web前端饱和了_2018年值得关注的15个Web设计趋势
查看>>
url uri urn区别_URI,URL和URN之间的区别
查看>>
dbms系统 rdbms_文件系统和DBMS之间的区别
查看>>
单精度 半精度 双精度_单精度与双精度
查看>>
移动2018年年报 下载_2018年让网站具有移动响应能力至关重要的7个原因
查看>>
python生成6位随机数_用Python生成随机数的6种方法
查看>>
最流行的编程语言2018_2018年十大最受欢迎的编程语言
查看>>
sql和nosql区别_SQL和NoSQL之间的区别
查看>>
Python将字符串转换为日期时间
查看>>
哪种编程语言最难_6种最困难的编程语言
查看>>
验证和确认的区别_验证与确认之间的区别
查看>>