Home »
Public Forums »
archive »
Re: Print formatting
Re: Print formatting [message #31295] |
Mon, 24 June 2002 08:52 |
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
============================================================ =======
|
|
|
Current Time: Sat Oct 11 06:22:21 PDT 2025
Total time taken to generate the page: 1.51869 seconds