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

Home » Public Forums » archive » Reads Precision Error?
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
Reads Precision Error? [message #3678] Sun, 05 March 1995 00:26
chris is currently offline  chris
Messages: 22
Registered: October 1994
Junior Member
Hi Folks,

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.

Example:

three = [0.123456789012345d0,1.d0,1.d0]
a = 1.d0 & b = 1.d0 & c=1.d0 ;initalize double
reads,three,a,b,c
print,three(0),a,f='(D40.30)'

And you get:

0.123456789012344997358283649191
0.123456789999999996809698643574
^
Error in the 10th place.


Any ideas?
-chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Hey, why no GLOBAL politcal map?
Next Topic: stupid question about CALL_EXTERNAL

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

Current Time: Fri Oct 10 00:33:01 PDT 2025

Total time taken to generate the page: 1.19915 seconds