Mercurial > octave
comparison scripts/general/num2str.m @ 21562:6c2fd62db1f7
maint: Eliminate accidental double spaces in code.
* make_int.cc, file-editor-tab.h, file-editor.cc, shortcut-manager.h,
__contourc__.cc, cellfun.cc, debug.cc, errwarn.h, graphics.in.h, jit-ir.h,
oct-stream.cc, quadcc.cc, qz.cc, sparse-xdiv.cc, symtab.cc, __init_fltk__.cc,
ov-class.cc, ov-float.h, ov-scalar.h, op-int.h, CNDArray.cc, CSparse.cc,
MSparse.cc, Sparse.cc, boolNDArray.cc, chNDArray.cc, dNDArray.cc, dSparse.cc,
fCNDArray.cc, fNDArray.cc, int16NDArray.cc, int32NDArray.cc, int64NDArray.cc,
int8NDArray.cc, intNDArray.cc, uint16NDArray.cc, uint32NDArray.cc,
uint64NDArray.cc, uint8NDArray.cc, randgamma.h, randmtzig.h, randpoisson.c,
randpoisson.h, Sparse-op-defs.h, oct-time.cc, kpse.cc, lo-array-errwarn.h,
lo-ieee.h, del2.m, num2str.m, __isequal__.m, lookfor.m, hsv2rgb.m,
colorspace_conversion_revert.m, fminbnd.m, create_pkgadddel.m, shading.m,
struct2hdl.m, gallery.m, discrete_cdf.m, kolmogorov_smirnov_test.m, assert.m,
datestr.m, classes.tst, jit.tst:
Eliminate accidental double spaces in code.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Mar 2016 15:19:12 -0700 |
parents | a4faec57f4c8 |
children | bac0d6f07a3e |
comparison
equal
deleted
inserted
replaced
21561:4abcc0969ebd | 21562:6c2fd62db1f7 |
---|---|
191 | 191 |
192 | 192 |
193 %!assert (num2str (123), "123") | 193 %!assert (num2str (123), "123") |
194 %!assert (num2str (1.23), "1.23") | 194 %!assert (num2str (1.23), "1.23") |
195 %!assert (num2str (123.456, 4), "123.5") | 195 %!assert (num2str (123.456, 4), "123.5") |
196 %!assert (num2str ([1, 1.34; 3, 3.56], "%5.1f"), ["1.0 1.3"; "3.0 3.6"]) | 196 %!assert (num2str ([1, 1.34; 3, 3.56], "%5.1f"), ["1.0 1.3"; "3.0 3.6"]) |
197 %!assert (num2str (1.234 + 27.3i), "1.234+27.3i") | 197 %!assert (num2str (1.234 + 27.3i), "1.234+27.3i") |
198 %!assert (num2str ([true false true]), "1 0 1") | 198 %!assert (num2str ([true false true]), "1 0 1") |
199 | 199 |
200 %!assert (num2str (19440606), "19440606") | 200 %!assert (num2str (19440606), "19440606") |
201 %!assert (num2str (2^33), "8589934592") | 201 %!assert (num2str (2^33), "8589934592") |