Fortran What dose d-8 mean in Fortran?

  • Thread starter Thread starter nnnnn
  • Start date Start date
  • Tags Tags
    Fortran Mean
AI Thread Summary
In Fortran, "d-8" denotes a double precision floating-point number. Specifically, the notation "2.0d-8" is equivalent to "2.0e-8," but it indicates that the value is stored as a double precision real number rather than a single precision one. In FORTRAN 77, this would be declared as REAL*16 instead of REAL*8. The value can be understood mathematically as 2 multiplied by 10 raised to the power of -8.
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
25
Views
3K
Replies
2
Views
1K
Replies
20
Views
3K
Replies
12
Views
1K
Replies
75
Views
17K
Replies
17
Views
5K
Replies
9
Views
4K
Back
Top