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

Home » Public Forums » archive » problem string from double missing 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
problem string from double missing digits [message #36406] Thu, 11 September 2003 05:45
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi all,

did someone know what here is going on.

IDL> d = 98046763.617D
IDL> s = string(d)
IDL> PRINT,s
98046764.
IDL> HELP,s
S STRING = ' 98046764.'

Where are the digits ????

Or does it mean I have first to determine the Format of the number and I
have to use this information to get the right number.

IDL> s = string(d,format='(F12.3)')
IDL> PRINT,s
98046763.617

This goes right. But my feeling is this is terrible. Because I bet noone
takes care on this. What's your feeling?


regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL projection transformation
Next Topic: Re: problem string from double missing digits

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

Current Time: Wed Oct 08 17:39:00 PDT 2025

Total time taken to generate the page: 0.00565 seconds