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

Home » Public Forums » archive » printing floats/integer
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
printing floats/integer [message #24118] Thu, 08 March 2001 05:34 Go to next message
Sean Heukels is currently offline  Sean Heukels
Messages: 25
Registered: November 1999
Junior Member
I wrote a small module for integers. The variable is formatted and returned.

"1 " returns as "1"

Now this doesn't work with floats. for example if I want to print "1.22221"
I
dont want to see it as "1.222221000000000000000" or
"1.222222 "

Does anyone know how I can solve this ??

Greets Sean
Re: printing floats/integer [message #24166 is a reply to message #24118] Sat, 10 March 2001 10:10 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Sean Heukels wrote:
>
> I wrote a small module for integers. The variable is formatted and returned.
>
> "1 " returns as "1"
>
> Now this doesn't work with floats. for example if I want to print "1.22221"
> I
> dont want to see it as "1.222221000000000000000" or
> "1.222222 "
>
> Does anyone know how I can solve this ??
>
> Greets Sean


We have a tool in our library which may be the one you are looking for:

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/number_format.tar.gz

Or take this routine to find the format which was used:

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/find_form.tar.gz

For further routines and licensing please look at
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml


regards
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 J�lich
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: Strings as variables?
Next Topic: FROM 5.12345 TO 5.12

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

Current Time: Fri Oct 10 13:26:49 PDT 2025

Total time taken to generate the page: 1.59608 seconds