comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » format problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
format problem [message #6932] Fri, 30 August 1996 00:00 Go to next message
Jorn Helbert is currently offline  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 Go to previous message
David Foster is currently offline  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 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: button sizing, sun vs sgi
Next Topic: PV-WAVE date/time plots

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:29 PDT 2025

Total time taken to generate the page: 0.00833 seconds