comparison src/pr-output.cc @ 4233:ccfdb55c8156

[project @ 2002-12-20 22:43:54 by jwe]
author jwe
date Fri, 20 Dec 2002 22:43:55 +0000
parents e96f52432059
children 5b075bd78a91
comparison
equal deleted inserted replaced
4232:b032ebd54586 4233:ccfdb55c8156
1880 } 1880 }
1881 1881
1882 static void 1882 static void
1883 set_output_prec_and_fw (int prec, int fw) 1883 set_output_prec_and_fw (int prec, int fw)
1884 { 1884 {
1885 bind_builtin_variable ("output_precision", static_cast<double> (prec)); 1885 bind_builtin_variable ("output_precision", prec);
1886 bind_builtin_variable ("output_max_field_width", static_cast<double> (fw)); 1886 bind_builtin_variable ("output_max_field_width", fw);
1887 } 1887 }
1888 1888
1889 static void 1889 static void
1890 set_format_style (int argc, const string_vector& argv) 1890 set_format_style (int argc, const string_vector& argv)
1891 { 1891 {
2175 } 2175 }
2176 2176
2177 void 2177 void
2178 symbols_of_pr_output (void) 2178 symbols_of_pr_output (void)
2179 { 2179 {
2180 DEFVAR (fixed_point_format, 0.0, fixed_point_format, 2180 DEFVAR (fixed_point_format, false, fixed_point_format,
2181 "-*- texinfo -*-\n\ 2181 "-*- texinfo -*-\n\
2182 @defvr {Built-in Variable} fixed_point_format\n\ 2182 @defvr {Built-in Variable} fixed_point_format\n\
2183 If the value of this variable is nonzero, Octave will scale all values\n\ 2183 If the value of this variable is nonzero, Octave will scale all values\n\
2184 in a matrix so that the largest may be written with one leading digit.\n\ 2184 in a matrix so that the largest may be written with one leading digit.\n\
2185 The scaling factor is printed on the first line of output. For example,\n\ 2185 The scaling factor is printed on the first line of output. For example,\n\
2219 @defvr {Built-in Variable} output_precision\n\ 2219 @defvr {Built-in Variable} output_precision\n\
2220 This variable specifies the minimum number of significant figures to\n\ 2220 This variable specifies the minimum number of significant figures to\n\
2221 display for numeric output. The default value is 5.\n\ 2221 display for numeric output. The default value is 5.\n\
2222 @end defvr"); 2222 @end defvr");
2223 2223
2224 DEFVAR (print_empty_dimensions, 1.0, print_empty_dimensions, 2224 DEFVAR (print_empty_dimensions, true, print_empty_dimensions,
2225 "-*- texinfo -*-\n\ 2225 "-*- texinfo -*-\n\
2226 @defvr {Built-in Variable} print_empty_dimensions\n\ 2226 @defvr {Built-in Variable} print_empty_dimensions\n\
2227 If the value of @code{print_empty_dimensions} is nonzero, the\n\ 2227 If the value of @code{print_empty_dimensions} is nonzero, the\n\
2228 dimensions of empty matrices are printed along with the empty matrix\n\ 2228 dimensions of empty matrices are printed along with the empty matrix\n\
2229 symbol, @samp{[]}. For example, the expression\n\ 2229 symbol, @samp{[]}. For example, the expression\n\
2238 @example\n\ 2238 @example\n\
2239 ans = [](3x0)\n\ 2239 ans = [](3x0)\n\
2240 @end example\n\ 2240 @end example\n\
2241 @end defvr"); 2241 @end defvr");
2242 2242
2243 DEFVAR (split_long_rows, 1.0, split_long_rows, 2243 DEFVAR (split_long_rows, true, split_long_rows,
2244 "-*- texinfo -*-\n\ 2244 "-*- texinfo -*-\n\
2245 @defvr {Built-in Variable} split_long_rows\n\ 2245 @defvr {Built-in Variable} split_long_rows\n\
2246 For large matrices, Octave may not be able to display all the columns of\n\ 2246 For large matrices, Octave may not be able to display all the columns of\n\
2247 a given row on one line of your screen. This can result in missing\n\ 2247 a given row on one line of your screen. This can result in missing\n\
2248 information or output that is nearly impossible to decipher, depending\n\ 2248 information or output that is nearly impossible to decipher, depending\n\