Fortran 语言中的 10.D00 是什么意思?
我必须从 Fortran 转换一些代码,所以不知道这个语句的含义:
var1 = 10.D00
有人能解释一下它的含义吗?
I have to convert some code from Fortran so doesn't know how what this statement means:
var1 = 10.D00
Can someone explain me what it means?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用双精度科学记数法表示就是 10.0(D 代表的意思)。
请参阅:http://www.fortran.com/F77_std /rjcnf0001-sh-4.html#sh-4.2.1:
4.5.1 双精度指数。
形式双精度指数是字母 D 后跟一个可选的带符号整数常量。双精度指数表示十的幂。请注意,双精度指数的形式和解释与实数指数的形式和解释相同,只是使用字母 D 代替字母 E。
It's just 10.0 in scientific notation with double precision (that's what the D stands for).
See: http://www.fortran.com/F77_std/rjcnf0001-sh-4.html#sh-4.2.1:
4.5.1 Double Precision Exponent.
The form of a double precision exponent is the letter D followed by an optionally signed integer constant. A double precision exponent denotes a power of ten. Note that the form and interpretation of a double precision exponent are identical to those of a real exponent, except that the letter D is used instead of the letter E.