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

Home » Public Forums » archive » Re: printf formatting
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: printf formatting [message #44627 is a reply to message #44626] Thu, 30 June 2005 08:54 Go to previous message
brian0918 is currently offline  brian0918
Messages: 5
Registered: June 2005
Junior Member
Alright, I found a way to do it, but it's not that pretty. I have it
check if (the total size of the array) mod (number of columns per row)
= 0, and if it does, then it does that command, but if it doesn't equal
0, then:

printf,1,format='(1((1x,3(f3.1,1x)),1x,"\"),$)',data(0:*)
printf,1," \"


If anyone sees any problems with this, or if you know of a much easier
way to do this, please let me know.

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map_Grid
Next Topic: Map_grid options

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

Current Time: Tue Dec 02 08:43:40 PST 2025

Total time taken to generate the page: 1.12219 seconds