diff scripts/general/num2str.m @ 26600:f6730533820e stable

doc: clean up doc example blocks for accuracy and consistent formatting * bitset.m, circshift.m, idivide.m, int2str.m, integral3.m, num2str.m, rat.m, repelem.m, shiftdim.m, structfun.m, trapz.m, condeig.m, cross.m, qzhess.m, computer.m, fullfile.m, orderfields.m, substruct.m, swapbytes.m, contourc.m, isprime.m, runlength.m, clock.m, date.m: Fix presentation and formatting of example block results. * graphics.cc (Fset): Likewise. * sparse.cc (Fsparse): Likewise.
author Mike Miller <mtmiller@octave.org>
date Tue, 22 Jan 2019 13:45:11 -0800
parents 00f796120a6d
children 45ad2127582b
line wrap: on
line diff
--- a/scripts/general/num2str.m	Tue Jan 22 10:49:46 2019 -0800
+++ b/scripts/general/num2str.m	Tue Jan 22 13:45:11 2019 -0800
@@ -32,23 +32,24 @@
 ## @example
 ## @group
 ## num2str (123.456)
-##      @result{} "123.46"
+##   @result{} 123.456
 ##
 ## num2str (123.456, 4)
-##      @result{} "123.5"
+##   @result{} 123.5
 ##
 ## s = num2str ([1, 1.34; 3, 3.56], "%5.1f")
-##      @result{} s =
-##         1.0  1.3
-##         3.0  3.6
+##   @result{} s =
+##        1.0  1.3
+##        3.0  3.6
 ## whos s
-##      @result{}
-##       Attr Name        Size                     Bytes  Class
-##       ==== ====        ====                     =====  =====
-##            s           2x8                         16  char
+##   @result{} Variables in the current scope:
+##         Attr Name        Size                     Bytes  Class
+##         ==== ====        ====                     =====  =====
+##              s           2x8                         16  char
+##      Total is 16 elements using 16 bytes
 ##
 ## num2str (1.234 + 27.3i)
-##      @result{} "1.234+27.3i"
+##   @result{} 1.234+27.3i
 ## @end group
 ## @end example
 ##