Mercurial > octave-nkf
diff src/pr-output.cc @ 4791:62f2fb593455
[project @ 2004-02-20 18:02:59 by jwe]
author | jwe |
---|---|
date | Fri, 20 Feb 2004 18:02:59 +0000 |
parents | bf7272f8ba8c |
children | 399e8681b774 |
line wrap: on
line diff
--- a/src/pr-output.cc Thu Feb 19 20:15:18 2004 +0000 +++ b/src/pr-output.cc Fri Feb 20 18:02:59 2004 +0000 @@ -1874,6 +1874,15 @@ double val = base + i * increment; + if (i == num_elem - 1) + { + // See the comments in Range::matrix_value. + + if ((increment > 0 && val > limit) + || (increment < 0 && val < limit)) + val = limit; + } + os << " "; pr_float (os, val, fw, scale);