format problem [message #6932] |
Fri, 30 August 1996 00:00  |
Jorn Helbert
Messages: 4 Registered: July 1996
|
Junior Member |
|
|
Just a simple question...
I create a variable
a=double(1.2222222222222222222222222222222222222222222222222 22222222222222222222222)
and then use
print,format='(G10.10)',a
the result is
**********
why?? I have more than 10 digits, so why can't I print them??
cheers
jorn
--
Joern Helbert
Space and atmospheric physics group
Imperial College - London
phone: 0171 594-7764
|
|
|
Re: format problem [message #6982 is a reply to message #6932] |
Thu, 05 September 1996 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Jorn Helbert wrote:
>
> Just a simple question...
> I create a variable
> a=double(1.2222222222222222222222222222222222222222222222222 22222222222222222222222)
> and then use
> print,format='(G10.10)',a
> the result is
> **********
> why?? I have more than 10 digits, so why can't I print them??
Try print, format='(G12.10)', a
and then RTFM about explicit formatting.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|