Scientific Notation Problem when Printing to File

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

dwagner
Posts: 4
Joined: Fri Jun 24, 2011 7:16 am

Scientific Notation Problem when Printing to File

Postby dwagner » Fri Jul 22, 2011 11:19 am

Hello,
I am running a batch program for a bunch of different equations. I have the output printing to a txt file. Some of the output is in scientific notation. This appears on the screen as (for example) 7.3E-05. In reality it is 7.26590757252204e-05. In the txt file it gets printed as the shortened version and when converting to a number you get .000073 instead of the actual output of .000072659.......

Is there a way to increase the specificity when you print to file?

Thanks

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Scientific Notation Problem when Printing to File

Postby EViews Gareth » Fri Jul 22, 2011 11:21 am

Not sure exactly what you are currently doing, but try freezing the equation output into a table object, setting the cell format of the table object to something at a higher precision, and then printing it.

dwagner
Posts: 4
Joined: Fri Jun 24, 2011 7:16 am

Re: Scientific Notation Problem when Printing to File

Postby dwagner » Fri Jul 22, 2011 11:38 am

Thanks I got stuck with another project for the moment - on Monday I will post a part of the program so it is more clear.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests