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

Home » Public Forums » archive » Re: Print formatting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Print formatting [message #31295] Mon, 24 June 2002 08:52
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Niel Malan wrote:
>
> Silicon & Carbon
>
> Is there any way to use the FORMAT keyword (as used in PRINTF() and STRING() ) to force printed output to contain a sign.
>
> If
> a = 12.3
> Then I want the print to produce
> "+ 12.3"
>
> and a = -12.3 should give me "- 12.3"
>
> In reading the documentation on format codes, I could not find any reference to sign at all, but I have the feeling I am
> missing something obvious.
>
> Niel

No idea by format. I suggest to write a small function.

But wait some time may be I am wrong.


Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Capturing output
Next Topic: Performance issues

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

Current Time: Sat Oct 11 06:22:21 PDT 2025

Total time taken to generate the page: 1.51869 seconds