nnnnn Messages 5 Reaction score 0 Thread starter Oct 18, 2009 #1 What dose "d-8" mean in Fortran? Dear friends; What dose "d-8" mean in Fortran? Thanks
jtbell Staff Emeritus Science Advisor Homework Helper 2025 Award Messages 16,110 Reaction score 8,370 Oct 18, 2009 #2 2.0d-8 is the same value as 2.0e-8 except that it's stored as a double precision real number instead of single precision. In FORTRAN 77 it would be declared as REAL*16 instead of REAL*8.
2.0d-8 is the same value as 2.0e-8 except that it's stored as a double precision real number instead of single precision. In FORTRAN 77 it would be declared as REAL*16 instead of REAL*8.
nnnnn Messages 5 Reaction score 0 Oct 18, 2009 #3 Much thanks to jtbell ; you mean 2.0d-8 is equal to 2*10^ (-8) ?
jtbell Staff Emeritus Science Advisor Homework Helper 2025 Award Messages 16,110 Reaction score 8,370 Oct 19, 2009 #4 Yes.