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

Home » Public Forums » archive » Re: format problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: format problem [message #6927] Fri, 30 August 1996 00:00
Tim Patterson is currently offline  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
[Message index]
 
Read Message
Previous Topic: [Q] Colormaps and setting !D.N_COLORS
Next Topic: Re: 32 bits IMAGES

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

Current Time: Wed Oct 08 19:39:33 PDT 2025

Total time taken to generate the page: 0.00406 seconds