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

Home » Public Forums » archive » Re: Printf and line breaks
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 and line breaks [message #23234 is a reply to message #23229] Sat, 20 January 2001 08:33 Go to previous messageGo to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
Sure. You just need to add a format statement, like

printf, filetpr, val1, val2, val3, val4, val5, val6, format='(6f8.1)'

or whatever format you want the numbers to be in.

ALAN FRAZIER wrote:

> Sorry to bother everyone again. I am just beginning my enduring journey of
> learning IDL and keep running into obstacles.
>
> My current problem is with printf. I am trying to create a text output
> file that can be imported into a spreadsheet. My problem is that printf is
> automatically line wrapping. For example:
>
> printf, filetpr, val1, val2, val3, val4, val5, val6,
>
> is producing output where val1, val2, val3, and val4 are on a single line.
> But, val5 and val6 are placed on the following line. NOTE: I am actually
> trying to print 10 different floats on the same line.
>
> I did think about converting all the values into one long string and
> printing that string. But, this issue was still a problem.
>
> Anyone have any ideas about how to fix this? Is a solution even possible?
>
> Thanks,
>
> Alan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: check for duplicate routine names?
Next Topic: Re: There is always a first !

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

Current Time: Sat Oct 11 12:16:35 PDT 2025

Total time taken to generate the page: 1.28389 seconds