.write precision

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

CharlieEVIEWS
Posts: 202
Joined: Tue Jul 17, 2012 9:47 am

.write precision

Postby CharlieEVIEWS » Fri Mar 27, 2015 9:42 am

Dear all,

Is there a way to control for precision in .write exports? For example, I am exporting a very large ~4000,4000 matrix (.write(t=txt)) and it's saving in double precision to the txt, and is taking up an inordinate amount of disk space and the precision is unnecessary. Any way to either compact or control for a single precision, or even fewer sig figs?

Charlie

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

Re: .write precision

Postby EViews Gareth » Sat Mar 28, 2015 4:07 pm

Create a new matrix that is a rounded version of the original one, and save the new matrix.

Code: Select all

matrix b = @round(a*1000)/1000
b.write(t=text) myfile.txt
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 21 guests