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

Home » Public Forums » archive » Re: Floating Array Shows no numbers after the dot
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: Floating Array Shows no numbers after the dot [message #29466 is a reply to message #29465] Tue, 19 February 2002 09:07 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
"Emmler, Oliver" wrote:
>
> Hi,
>
> I tried the following:
>
> Array = FLTARR[15]
> Time = 123456.123456
> Array[0] = Time
> Print, Array[0]
>
> All numbers after the colon are gone.
>
> Can anyone help ?
> Do i have to use DCOMPLEXARR ?
> Is this problem caused by Pre-Formatting due to the system ?
>
> Regards,
> Oliver
>

Dear Oliver,

float has only 6 digits. (6.5 digits)

If you like to have more digits you should use double.
You should then format the output with e.g.

print,array[0],format=('F20.8)'



Reimar


> --
> Oliver Emmler
> University of Heidelberg
> Departement of Radiology
> Phone: +49-6221-7963059 E-Mail: Oliver.Emmler@med.uni-heidelberg.de

--
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
============================================================ ======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Color problems with 5.5/RH linux 7.1
Next Topic: Creating embedded license .sav files

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

Current Time: Fri Oct 10 02:22:52 PDT 2025

Total time taken to generate the page: 1.52060 seconds