Page 1 of 1

.write precision

Posted: Fri Mar 27, 2015 9:42 am
by CharlieEVIEWS
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

Re: .write precision

Posted: Sat Mar 28, 2015 4:07 pm
by EViews Gareth
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