help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

truncated data using 'save'


From: Sergei Steshenko
Subject: truncated data using 'save'
Date: Sun, 21 Dec 2008 13:35:27 -0800 (PST)

Hello All,

here is a sample session:

"
octave:21> output_precision(25);
octave:22> output_max_field_width(31);
octave:23> foo = 1/3
foo =  3.333333333333333148296162562474e-01
octave:24> save('-ascii', 'foo.txt', 'foo')
octave:25> system('cat foo.txt')
3.33333333e-01
ans = 0
octave:26> version
ans = 3.0.3
"

- as I can see, output file contains less significant digits than shown on
the terminal.

Any way to set output precision for the 'save' command ?

Thanks,
  Sergei.


      


reply via email to

[Prev in Thread] Current Thread [Next in Thread]