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

Home » Public Forums » archive » Re: representive digits
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: representive digits [message #29134 is a reply to message #29125] Mon, 04 February 2002 07:28 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Reimar Bauer wrote:

> Hi,
>
>
> I am searching for a routine to copy numbers to their
> representive digits in a string.
>
> e.g
>
> float : 6 digits
>
> numbers=[(1/3.)*1000., !pi*10000.]
>
> print,numbers,format='(F20.5)'
>
> gives a fix mask and returns:
>
> 333.33334
> 31415.92773
>
>
> what I like to have is :
>
> 333.333
> 31415.9
>
> Any ideas ?
>
>
> Reimar

printf,numbers,format='(G7.6)'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Dialog_Pickfile Question
Next Topic: Re: AMD CPU - pentium way faster? (should be IDL on win2000 faster than IDL on linux)

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

Current Time: Sat Oct 18 14:36:44 PDT 2025

Total time taken to generate the page: 0.56297 seconds