What dose d-8 mean in Fortran?

  • Context: Fortran 
  • Thread starter Thread starter nnnnn
  • Start date Start date
  • Tags Tags
    Fortran Mean
Click For Summary

Discussion Overview

The discussion revolves around the meaning of "d-8" in Fortran, specifically in the context of numerical representation and precision in the programming language.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant asks for clarification on the meaning of "d-8" in Fortran.
  • Another participant explains that "2.0d-8" represents a double precision real number, equating it to "2.0e-8" but noting the difference in precision.
  • A subsequent participant seeks confirmation that "2.0d-8" can be interpreted as "2*10^(-8)".
  • A later reply confirms this interpretation.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation of "d-8" as relating to double precision representation, but the discussion does not explore any competing views or unresolved issues.

nnnnn
Messages
5
Reaction score
0
What dose "d-8" mean in Fortran?

Dear friends;
What dose "d-8" mean in Fortran?
Thanks
 
Technology news on Phys.org


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.
 


Much thanks to jtbell ;

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


Yes.
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 75 ·
3
Replies
75
Views
18K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K