Hi there,
Well, two things:
1- print procedure needs to have the FORMAT keyword so that you can "display" all the digits that you would like to see on the screen, for example:
print, textfile, , format='(f10.2)'
2- You need to declare the input numbers as double, before using any function on them, like double(). In other words, in the text file, the numbers should have a D at the end:
1234567.26D
Then, a double precision memory address will be reserved for that number, ie. a 4 byte number. Otherwise, without the D, the number is considered single precision, ie. only 6 or 7 significant digits are used. In double precision, approx. 14 significant digits are used.
I hope this helps. Please, take a look at the IDL Help table on "IDL Data Types".
Cheers,
Fernando
|