Fortran How to declare real constants in Fortran? Please help

  • Thread starter Thread starter onlybarca6
  • Start date Start date
  • Tags Tags
    Constants Fortran
onlybarca6
Messages
5
Reaction score
0
How do I declare constants beginning with "zero" in Fortran to get the output beginning with zero ?

If I declare :

REAL, parameter :: tension = 0.025

I get the output:

2.500000E-02



Thanks in advance
 
Technology news on Phys.org
I think you want to look at FORMAT descriptors.
 
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 have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
2
Views
1K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
4
Views
1K
Replies
12
Views
3K
Back
Top