reading double precision [message #3773] |
Fri, 10 March 1995 08:01 |
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
|
|
|