Mercurial > hg > octave-terminal
changeset 10626:044d9df4d79a
Correctly set output precision (#29870) in dlmwrite
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 12 May 2010 16:26:08 -0700 |
parents | 07933067e4ab |
children | 8dce19c3ecf7 |
files | scripts/ChangeLog scripts/io/dlmwrite.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-05-08 David Gesswein <djg@pdp8online.com> + + * io/dlmwrite.m: Correctly set output precision (#29870). + 2010-05-12 Jordi GutiƩrrez Hermoso <jordigh@gmail.com> * help/help.m: Allow docstring to be returned as output, and
--- a/scripts/io/dlmwrite.m +++ b/scripts/io/dlmwrite.m @@ -127,7 +127,7 @@ i = i + 1; precision = varargin{i}; if (! strcmpi (class (precision), "char")) - precision = sprintf ("%.%gg", precision); + precision = sprintf ("%%.%gg", precision); endif elseif (strcmpi (varargin{i}, "-append")) opentype = "at";