Fortran 语言中的 10.D00 是什么意思?

发布于 2024-12-20 04:06:30 字数 102 浏览 1 评论 0原文

我必须从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝眼睛不忧郁 2024-12-27 04:06:30

用双精度科学记数法表示就是 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.


~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文