Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
4790:91a84c9bdadb | 4791:62f2fb593455 |
---|---|
1872 { | 1872 { |
1873 OCTAVE_QUIT; | 1873 OCTAVE_QUIT; |
1874 | 1874 |
1875 double val = base + i * increment; | 1875 double val = base + i * increment; |
1876 | 1876 |
1877 if (i == num_elem - 1) | |
1878 { | |
1879 // See the comments in Range::matrix_value. | |
1880 | |
1881 if ((increment > 0 && val > limit) | |
1882 || (increment < 0 && val < limit)) | |
1883 val = limit; | |
1884 } | |
1885 | |
1877 os << " "; | 1886 os << " "; |
1878 | 1887 |
1879 pr_float (os, val, fw, scale); | 1888 pr_float (os, val, fw, scale); |
1880 } | 1889 } |
1881 | 1890 |