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

Home » Public Forums » archive » Format Code Question
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 code question [message #61398 is a reply to message #35691] Wed, 16 July 2008 05:19 Go to previous message
lbnc is currently offline  lbnc
Messages: 15
Registered: January 2005
Junior Member
On 16 Jul, 13:09, l...@lbnc.de wrote:
> Hi there,
>
> to me, the format code '(I03,",",I03,",",I03)' is the same as
> '(I03,2(",",I03))'. Not, it seems, to IDL:
>
> aa  = indgen(2, 3)
> str_aa = string(aa, format='(I03,",",I03,",",I03)')
> print, str_aa
> str_aa = string(aa, format='(I03,2(",",I03))')
> print, str_aa
> end
>
> gives here on my machine
>
> 000,001,002 003,004,005
> 000,001,002 ,003,004 ,005,
>
> Anybody knows why? Bug or feature?
>
> Cheers
> Lasse Clausen

Just in case you are wondering, this produces the same odd behaviour
for

aa = indgen(3, 2)

Cheers
Lasse Clausen
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Format code question
Next Topic: Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning

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

Current Time: Sun Oct 12 01:31:37 PDT 2025

Total time taken to generate the page: 0.40209 seconds