h*****d 发帖数: 788 | 1 a = 2._EB/3._EB
这个 _EB 什么意思?
谢谢 | h*******s 发帖数: 11 | 2 EB is the kind type parameter.
If EB is not defined in that program unit (program, module, subroutine, or
function), it will be defined in one of the modules that you "use" in
that program unit.
Given either of these definitions:
integer,parameter::eb=selected_real_kind(6,37)
integer,parameter::eb=kind(0.0e0)
then
real(eb)::a
a=2.0_eb/3.0_eb
gives the single-precision result of dividing 2.0 by 3.0.
If instead eb is defined as either of the following:
integer,parameter::eb=selected_real_kind(15,3
【在 h*****d 的大作中提到】 : a = 2._EB/3._EB : 这个 _EB 什么意思? : 谢谢
| h*****d 发帖数: 788 | 3 Thank you! Fortran getting more more complicated...
【在 h*******s 的大作中提到】 : EB is the kind type parameter. : If EB is not defined in that program unit (program, module, subroutine, or : function), it will be defined in one of the modules that you "use" in : that program unit. : Given either of these definitions: : integer,parameter::eb=selected_real_kind(6,37) : integer,parameter::eb=kind(0.0e0) : then : real(eb)::a : a=2.0_eb/3.0_eb
|
|