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

Home » Public Forums » archive » Re: writing ascii-file with separator
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: writing ascii-file with separator [message #46231 is a reply to message #46230] Tue, 08 November 2005 03:01 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Tobias Geldhauser wrote:

> Isn't there a way via "format" ?
>
> printf, 1, format='?????', tab

format='(5(" ",F+012.3, " "))'

should give you, for example 5 columns of floating point with a
deliberate space either side of the number, a '+' before positive and a
'-' before negative figures, each figure having 12 total digit spaces
and 3 places of decimals with the leading figures padded by zeros.

Look up "format codes" in help for some other tweaks.

HTH, Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: writing ascii-file with separator
Next Topic: IDLgrImage drawing performance with IDLgrPalette

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

Current Time: Fri Oct 10 05:04:52 PDT 2025

Total time taken to generate the page: 0.64391 seconds