Re: format problem [message #6927] |
Fri, 30 August 1996 00:00 |
Tim Patterson
Messages: 65 Registered: October 1995
|
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??
>
> cheers
> jorn
>
> --
> Joern Helbert
>
> Space and atmospheric physics group
> Imperial College - London
> phone: 0171 594-7764
The format statement is wrong. The first '10' means use
10 digits (including decimal point), but the second '10'
means I wnat 10 digits after the decimal point. However,
as you've only reserved 10 spaces for use, you can't
print the "1." and so it prints "*******" to show an
error.
Try G10.8 or G12.10 and it should work ok.
Tim
|
|
|