- #1
Morberticus
- 85
- 0
Hi,
I require specific formatting for a quantum chemistry calculation. But for some reason I can't seem to write using formatting. I have checked tutorials, but to no avail. Here is my toy program:
program test_format
implicit none
real :: m
write(*,*) 'Enter a number'
read(*,*) m
write(*,fmt='(d4.2)') m
end program test_format
After the user inputs a number, the program simply outputs stars: ****.
Any help would be greatly appreciated.
Thanks
I require specific formatting for a quantum chemistry calculation. But for some reason I can't seem to write using formatting. I have checked tutorials, but to no avail. Here is my toy program:
program test_format
implicit none
real :: m
write(*,*) 'Enter a number'
read(*,*) m
write(*,fmt='(d4.2)') m
end program test_format
After the user inputs a number, the program simply outputs stars: ****.
Any help would be greatly appreciated.
Thanks