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

Home » Public Forums » archive » representive digits
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
representive digits [message #29139] Mon, 04 February 2002 04:46
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
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
--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Simple question on Arrays
Next Topic: bash and IDL

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

Current Time: Wed Oct 08 20:02:56 PDT 2025

Total time taken to generate the page: 0.73770 seconds