PDA

View Full Version : accuracy=2.0d-8


nnnnn
Oct18-09, 04:18 PM
Dear friends;
What dose "d-8" mean in Fortran?
Thanks

jtbell
Oct18-09, 05:38 PM
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
Oct19-09, 12:55 AM
Much thanks to jtbell ;

you mean 2.0d-8 is equal to 2*10^ (-8) ?

jtbell
Oct19-09, 08:14 AM
Yes.