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

Home » Public Forums » archive » Re: my god, it's full of stars....
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: my god, it's full of stars.... [message #77213] Wed, 17 August 2011 05:05 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
If I don't know what the size of the numbers will be (or if their range is many orders of magnitude), I use exponential
formats, e.g. e13.6.

cheers,

paulv

polystethylene wrote:
> On Aug 16, 10:29 pm, Paul van Delst <paul.vande...@noaa.gov> wrote:
>> The format used to output the number can't "fit it in". E.g.
>>
>> IDL> x=0.631398
>> IDL> print, format='(f10.6)', x
>> 0.631398
>> IDL> x=1000.0
>> IDL> print, format='(f10.6)', x
>> **********
>>
>> So, if the number being output in your file is >= 1000, you'll get stars.
>>
>> The ">=" is subject to precision of course:
>>
>> IDL> x=999.9999
>> IDL> print, format='(f10.6)', x
>> 999.999878
>> IDL> x=999.99999
>> IDL> print, format='(f10.6)', x
>> **********
>>
>> cheers,
>>
>> paulv
>>
>>
>
>
> Hi Paul, thanks for the swift reply.
>
> Does this mean the solution for situations where the number is unknown
> is to print with format D0.6, and not D10.6?
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: FLEXlm, Windows 7 & IDL 6.0
Next Topic: Porting OS X IDL 7.0 to Linux IDL 8.0

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

Current Time: Wed Oct 08 19:36:48 PDT 2025

Total time taken to generate the page: 0.00449 seconds