Series precision during import/export
Posted: Wed Mar 23, 2011 8:02 am
I have a few hundred Excel files that I read in using the import command in a for-next loop. The numbers from the first file are integer values. Other files may contain integers or values up to a precision of two decimal places. I append the imported series from each new file to the the first workfile page, thus creating a stacked series containing the values from all the Excel files.
I've noticed when browsing through the stacked series view (by looking at the numbers on the status line) that once in a while, a value might show up as, for example, 547.0399999999999 instead of the 547.04 value it assumed in the Excel source file. Most two-digit values show up correctly; the integer values show up without any decimal places.
This becomes an issue when I try to export the stacked series to a csv file. Specifically if I do the export by selecting the relevant series in the workfile, right-clicking, and selecting export to file, then these high-precision entries show up instead of the two-digit values. However, I've noticed that if I instead do the export via the Eviews menu File -> Export -> Write Text-Lotus-Excel, then the numbers export correctly.
I'm curious as to why there is a difference in the two export procedures? And why does Eviews sometimes increase the precision of these two-digit values in the first place?
P.S. I'm using Eviews 7.1 (March 15 2011 build)
I've noticed when browsing through the stacked series view (by looking at the numbers on the status line) that once in a while, a value might show up as, for example, 547.0399999999999 instead of the 547.04 value it assumed in the Excel source file. Most two-digit values show up correctly; the integer values show up without any decimal places.
This becomes an issue when I try to export the stacked series to a csv file. Specifically if I do the export by selecting the relevant series in the workfile, right-clicking, and selecting export to file, then these high-precision entries show up instead of the two-digit values. However, I've noticed that if I instead do the export via the Eviews menu File -> Export -> Write Text-Lotus-Excel, then the numbers export correctly.
I'm curious as to why there is a difference in the two export procedures? And why does Eviews sometimes increase the precision of these two-digit values in the first place?
P.S. I'm using Eviews 7.1 (March 15 2011 build)