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

Home » Public Forums » archive » reading double precision
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
reading double precision [message #3773] Fri, 10 March 1995 08:01
dudley is currently offline  dudley
Messages: 8
Registered: August 1993
Junior Member
chris@sfsu.edu writes:
> I didn't see this in the FAQ, but it appears that the very
> useful reads command fails to preserve double precision, EVEN if
> the target variables are defined double precision beforehand.

I had similar problems defining double precision constants.
Apparently when converting from text to internal formats,
double precision numbers MUST be explicitly specified by the
suffix 'D0'. In IDL for windows:
a=1234.567890 & print,a,format='(f10.6)' yields 1234.567871
but
a=1234.567890D0 & print,a,format='(f10.6)' yields 1234.567890
--
John Wesley Dudley II,Ph.D. dudley@shell.com
Sr. Research Physicist !{uupsi}!shell!dudley
Shell Development Company (713)245-7927
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL: how to determine PS page offsets?
Next Topic: ROUTINE_NAMES

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

Current Time: Wed Oct 08 19:09:46 PDT 2025

Total time taken to generate the page: 0.00884 seconds